ReviewOS

also looking at this

craft-native/craft

feat: add Linux and Windows named-window routing

#325
Merged glennmichael123 wants to merge codex/multi-window-linux-windows into main
29 files +2250 -200
.github/workflows/release.ymlmodified+17-0
Changes to .github/workflows/release.yml
@@ -179,6 +179,23 @@ jobs:
179179 rm -rf zig-out/bin
180180 zig build -Doptimize=ReleaseSafe -Dversion="$VERSION"
181181
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
182199 # ── macOS Code Signing & Notarization ──────────────────────────
183200 # The signing credentials live encrypted in `.env.production`, not as
184201 # seven repository secrets.