also looking at this
feat: add Linux and Windows named-window routing
#325
29 files
+2250
-200
| @@ -179,6 +179,23 @@ jobs: | ||
| 179 | 179 | rm -rf zig-out/bin |
| 180 | 180 | zig build -Doptimize=ReleaseSafe -Dversion="$VERSION" |
| 181 | 181 | |
| 182 | # The Windows binary dynamically loads WebView2Loader.dll. The runtime | |
| 183 | # alone does not provide the app-local loader, so stage the x64 DLL beside | |
| 184 | # craft.exe before Pantry zips zig-out/cross/windows-x64/. Pin and verify | |
| 185 | # the official NuGet package instead of silently shipping a moving DLL. | |
| 186 | - name: Stage Windows WebView2 loader | |
| 187 | if: runner.os == 'Linux' | |
| 188 | working-directory: packages/zig | |
| 189 | run: | | |
| 190 | set -euo pipefail | |
| 191 | VERSION=1.0.4191.47 | |
| 192 | EXPECTED=f492bbf547d0da329553b6727435b677579b1e9f91cc9e4a1ad029366d5f23d0 | |
| 193 | ARCHIVE="$RUNNER_TEMP/microsoft.web.webview2.$VERSION.nupkg" | |
| 194 | curl -fsSL --retry 3 "https://api.nuget.org/v3-flatcontainer/microsoft.web.webview2/$VERSION/microsoft.web.webview2.$VERSION.nupkg" -o "$ARCHIVE" | |
| 195 | echo "$EXPECTED $ARCHIVE" | sha256sum -c - | |
| 196 | unzip -p "$ARCHIVE" build/native/x64/WebView2Loader.dll > zig-out/cross/windows-x64/WebView2Loader.dll | |
| 197 | test -s zig-out/cross/windows-x64/WebView2Loader.dll | |
| 198 | ||
| 182 | 199 | # ── macOS Code Signing & Notarization ────────────────────────── |
| 183 | 200 | # The signing credentials live encrypted in `.env.production`, not as |
| 184 | 201 | # seven repository secrets. |