@@ -102,7 +102,7 @@ jobs:
102102 entitlements-plist-path : src-tauri/entitlements.plist
103103 artifact-name : buzz-app-${{ github.run_id }}-${{ github.run_attempt }}-arm64
104104
105- - name : Verify release DMG and bundled runtime
105+ - name : Verify release DMG
106106 env :
107107 SIGNED_DMG : ${{ steps.codesign.outputs.signed-dmg-path }}
108108 run : |
@@ -116,23 +116,6 @@ jobs:
116116 xcrun stapler validate "$app"
117117 codesign --display --entitlements :- "$app" > "$RUNNER_TEMP/signed-entitlements.plist"
118118 test "$(/usr/libexec/PlistBuddy -c 'Print :com.apple.security.device.audio-input' "$RUNNER_TEMP/signed-entitlements.plist")" = true || { echo '::error::Signed app is missing microphone entitlement'; exit 1; }
119- node --input-type=module - "$app/Contents/Resources/agent-runtime" <<'JS'
120- import { readFileSync, lstatSync } from 'node:fs';
121- import assert from 'node:assert/strict';
122- const directory = process.argv[2];
123- const source = JSON.parse(readFileSync('runtime/agent-runtime.json', 'utf8'));
124- const manifest = JSON.parse(readFileSync(`${directory}/manifest.json`, 'utf8'));
125- assert.equal(manifest.version, 2);
126- assert.deepEqual(manifest.goose, source.goose);
127- assert.equal(manifest.revision, source.revision);
128- assert.equal(manifest.target, 'aarch64-apple-darwin');
129- assert.deepEqual(Object.keys(manifest.files).sort(), [...source.tools].sort());
130- for (const name of source.tools) {
131- const path = `${directory}/${name}`;
132- assert.ok(lstatSync(path).isFile(), `${name} must be a regular file`);
133- assert.ok(lstatSync(path).mode & 0o111, `${name} must be executable`);
134- }
135- JS
136119
137120 - name : Stage release assets and checksums
138121 env :
@@ -321,20 +304,9 @@ jobs:
321304 - run : pnpm install --frozen-lockfile
322305 - name : Set candidate version
323306 run : node scripts/candidate-version.mjs
324- # Vendored OpenSSL (Goose runtime) runs Configure with `perl`. In this
325- # job's bash shell that is Git's MSYS perl, which lacks modules the
326- # Configure script needs. Use the image's Strawberry Perl instead.
327- - name : Select Strawberry Perl for vendored OpenSSL
328- shell : pwsh
329- run : |
330- $perl = 'C:\Strawberry\perl\bin\perl.exe'
331- if (!(Test-Path $perl)) { throw "Strawberry Perl not found at $perl" }
332- & $perl -MLocale::Maketext::Simple -MIPC::Cmd -e 1
333- if ($LASTEXITCODE -ne 0) { throw 'Strawberry Perl lacks OpenSSL Configure modules' }
334- "OPENSSL_SRC_PERL=$perl" >> $env:GITHUB_ENV
335307 - name : Build NSIS installer
336308 run : pnpm tauri build --ci --no-sign --bundles nsis --config "$RUNNER_TEMP/candidate.json" -- --locked
337- - name : Install into disposable runner and verify resource payload
309+ - name : Install into disposable runner and verify app executable
338310 shell : pwsh
339311 run : |
340312 $installers = @(Get-ChildItem target/release/bundle/nsis/*.exe)
@@ -344,8 +316,6 @@ jobs:
344316 $process = Start-Process $installers[0].FullName -ArgumentList "/S /D=$destination" -Wait -PassThru
345317 if ($process.ExitCode -ne 0) { throw "Installer failed: $($process.ExitCode)" }
346318 if (!(Test-Path "$destination\buzz-foundation.exe")) { throw 'App executable missing' }
347- node scripts/verify-runtime-bundle.mjs "$destination\agent-runtime" x86_64-pc-windows-msvc
348- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
349319 - name : Stage candidate and checksum
350320 run : |
351321 mkdir release-assets
@@ -403,19 +373,20 @@ jobs:
403373 run : node scripts/candidate-version.mjs
404374 - name : Build deb and AppImage
405375 run : pnpm tauri build --ci --no-sign --bundles deb,appimage --config "$RUNNER_TEMP/candidate.json" -- --locked
406- - name : Repair AppImage and verify both packaged resource payloads
376+ - name : Repair AppImage and verify packaged app executables
407377 run : |
408378 shopt -s nullglob
409379 debs=(target/release/bundle/deb/*.deb)
410380 images=(target/release/bundle/appimage/*.AppImage)
411381 test "${#debs[@]}" -eq 1 && test "${#images[@]}" -eq 1
412382 bash scripts/fix-appimage.sh "${images[0]}"
413383 dpkg-deb -x "${debs[0]}" "$RUNNER_TEMP/deb"
414- node scripts/verify-runtime-bundle.mjs "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/agent-runtime" x86_64-unknown-linux-gnu
384+ test -x "$RUNNER_TEMP/deb/usr/bin/buzz-foundation"
415385 image=$(realpath "${images[0]}")
416386 mkdir "$RUNNER_TEMP/appimage"
417387 (cd "$RUNNER_TEMP/appimage" && "$image" --appimage-extract >/dev/null)
418- node scripts/verify-runtime-bundle.mjs "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/agent-runtime" x86_64-unknown-linux-gnu
388+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/buzz-foundation"
389+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/buzz-foundation.bin"
419390 mkdir release-assets
420391 cp "${debs[0]}" "release-assets/Buzz_${VERSION}_amd64.deb"
421392 cp "${images[0]}" "release-assets/Buzz_${VERSION}_x86_64.AppImage"
0 commit comments