diff --git a/.github/workflows/build_windows.yaml b/.github/workflows/build_windows.yaml index cb7c318a..be95f9b7 100644 --- a/.github/workflows/build_windows.yaml +++ b/.github/workflows/build_windows.yaml @@ -56,7 +56,8 @@ jobs: "ia32": { "target": "i686-pc-windows-msvc", "build-args": "--ia32", - "arch": "x86" + "arch": "x86", + "extra_config": "{\"user_notice\": {\"title\": \"Your desktop support ends soon\",\"description\": \"Support for 32-bit Windows installations will end soon, this impacts you. Transition to the web or mobile app for continued access.\"}}" } } @@ -105,6 +106,20 @@ jobs: - name: Install Deps run: "yarn install --frozen-lockfile" + - name: Insert config snippet + if: steps.config.outputs.extra_config != '' + shell: bash + run: | + mkdir config-edit + yarn asar extract webapp.asar config-edit + cd config-edit + mv config.json old-config.json + echo '${{ steps.config.outputs.extra_config }}' | jq -s '.[0] * .[1]' old-config.json - > config.json + rm old-config.json + cd .. + rm webapp.asar + yarn asar pack config-edit/ webapp.asar + - name: Set up sqlcipher macros if: steps.cache.outputs.cache-hit != 'true' && contains(inputs.arch, 'arm') shell: pwsh