fix(build): patch bare-build codesign to allow darwin cross-compile from linux
CI / Build & Test (push) Has been cancelled

Made-with: Cursor
This commit is contained in:
Raven Scott
2026-02-27 19:17:46 -05:00
parent e43b48e38c
commit 93b8fc6f2f
3 changed files with 37 additions and 29 deletions
+2 -16
View File
@@ -24,26 +24,12 @@ jobs:
run: npm install
working-directory: native-host
- name: Build platform binaries
run: |
PLAT=$(node -e "process.stdout.write(process.platform)")
if [ "$PLAT" = "linux" ]; then
echo "Linux runner — building linux-arm64 + linux-x64 + win32-x64"
node scripts/build-distributable.js --host linux-arm64 --host linux-x64 --host win32-x64
elif [ "$PLAT" = "darwin" ]; then
echo "macOS runner — building darwin-arm64 + darwin-x64"
node scripts/build-distributable.js --host darwin-arm64 --host darwin-x64
else
echo "Unknown platform $PLAT — building current host only"
npm run build:dist
fi
- name: Build all platform binaries
run: node scripts/build-distributable.js --all --package
- name: Package extension (zip + xpi)
run: npm run pack
- name: Create zip archives for all binaries
run: node scripts/build-distributable.js --all --package
- name: Smoke test — run binary for current platform
run: |
PLAT=$(node -e "process.stdout.write(process.platform)")