Merge pull request #316 from jagerman/mac-build-script

Mac build script
This commit is contained in:
Jason Rhinelander 2022-09-01 17:06:00 -03:00 committed by GitHub
commit 4bc881e7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View File

@ -80,16 +80,11 @@ local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q';
name: 'build',
environment: {
SSH_KEY: { from_secret: 'SSH_KEY' },
CSC_LINK: 'tools/macos-codesign-cert.p12',
CSC_KEY_PASSWORD: { from_secret: 'CSC_KEY_PASSWORD' },
SIGNING_APPLE_ID: { from_secret: 'SIGNING_APPLE_ID' },
SIGNING_APP_PASSWORD: { from_secret: 'SIGNING_APP_PASSWORD' },
SIGNING_TEAM_ID: 'SUQ8J2PCT7',
CSC_IDENTITY_AUTO_DISCOVERY: 'false',
},
commands: [
'echo "Building on ${DRONE_STAGE_MACHINE}"',
'./tools/download-oxen-files.sh https://oxen.rocks/oxen-io/oxen-core/oxen-stable-macos-LATEST.tar.xz',
'if [ -z "$${SIGNING_APPLE_ID}" ]; then export CSC_IDENTITY_AUTO_DISCOVERY=false; fi',
'npm --version',
'node --version',
'mkdir -p $CCACHE_DIR/electron-builder',

12
tools/build-macos-release.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# This script needs to run on an *actual* Mac with proper signing keys loaded. It won't work in CI
# because Apple codesigning is unbelievably flakey.
rm -f bin/oxen*
./tools/download-oxen-files.sh https://oxen.rocks/oxen-io/oxen-core/oxen-stable-macos-LATEST.tar.xz
export NODE_OPTIONS=--openssl-legacy-provider
npm run build

Binary file not shown.