fix(build): patch bare-build codesign to allow darwin cross-compile from linux
CI / Build & Test (push) Has been cancelled
CI / Build & Test (push) Has been cancelled
Made-with: Cursor
This commit is contained in:
+2
-13
@@ -59,19 +59,8 @@ jobs:
|
||||
- name: Pack extension
|
||||
run: npm run pack
|
||||
|
||||
- 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 --package
|
||||
elif [ "$PLAT" = "darwin" ]; then
|
||||
echo "macOS runner — building darwin-arm64 + darwin-x64"
|
||||
node scripts/build-distributable.js --host darwin-arm64 --host darwin-x64 --package
|
||||
else
|
||||
echo "Unknown platform $PLAT — building current host only"
|
||||
node scripts/build-distributable.js --package
|
||||
fi
|
||||
- name: Build all platform binaries
|
||||
run: node scripts/build-distributable.js --all --package
|
||||
|
||||
- name: Smoke test — run native binary for current platform
|
||||
run: |
|
||||
|
||||
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user