signmacosdesktop
filip mertens 9 months ago
parent 64d64b27f0
commit 240a711e88
  1. 33
      .circleci/config.yml
  2. 2
      apps/remixdesktop/afterbuild.js
  3. 25
      apps/remixdesktop/notarize.sh

@ -305,38 +305,7 @@ jobs:
PUBLISH_FOR_PULL_REQUEST='true' USE_HARD_LINKS=false yarn dist --mac --arm64
yarn installRipGrepMacOXx64
PUBLISH_FOR_PULL_REQUEST='true' USE_HARD_LINKS=false yarn dist --mac --x64
- run:
name: Notarize the app
command: |
cd apps/remixdesktop
xcrun notarytool store-credentials "notarytool-password" \
--apple-id ${APPLE_ID} \
--team-id ${APPLE_TEAM_ID} \
--password ${APPLE_ID_PASSWORD}
# Assuming your app is packaged as a dmg or zip for notarization
xcrun notarytool submit 'release/Remix IDE 2-0.0.11-Alpha.dmg' \
--keychain-profile "notarytool-password" \
--wait
- run:
name: Notarize the app
command: |
cd apps/remixdesktop
# Assuming your app is packaged as a dmg or zip for notarization
xcrun notarytool submit 'release/Remix IDE 2-0.0.11-Alpha-Arm64.dmg' \
--keychain-profile "notarytool-password" \
--wait
- run:
name: Staple the app
command: |
cd apps/remixdesktop
xcrun stapler staple 'release/Remix IDE 2-0.0.11-Alpha.dmg'
xcrun stapler staple 'release/Remix IDE 2-0.0.11-Alpha-Arm64.dmg'
- run:
name: check the app
command: |
cd apps/remixdesktop
spctl -a -t open -vvv --context context:primary-signature 'release/Remix IDE 2-0.0.11-Alpha.dmg'
spctl -a -t open -vvv --context context:primary-signature 'release/Remix IDE 2-0.0.11-Alpha-Arm64.dmg'
- store_artifacts:
path: apps/remixdesktop/release/
destination: remixdesktop-mac

@ -1,7 +1,7 @@
const { spawn } = require('child_process');
exports.default = async function afterbuild(context) {
console.log('AFTER BUILD', context);
const child = spawn('ls', ['-la'], { shell: true });
const child = spawn('zh', ['notarize.sh', 'arg1', 'arg2'], { shell: true });
child.stdout.on('data', (data) => {
console.log(`stdout: ${data}`);

@ -0,0 +1,25 @@
#!/bin/bash
echo "Argument 1: $1"
echo "Argument 2: $2"
nvm use 20
xcrun notarytool store-credentials "notarytool-password" \
--apple-id ${APPLE_ID} \
--team-id ${APPLE_TEAM_ID} \
--password ${APPLE_ID_PASSWORD}
# Assuming your app is packaged as a dmg or zip for notarization
xcrun notarytool submit 'release/Remix IDE 2-0.0.11-Alpha.dmg' \
--keychain-profile "notarytool-password" \
--wait
# Assuming your app is packaged as a dmg or zip for notarization
xcrun notarytool submit 'release/Remix IDE 2-0.0.11-Alpha-Arm64.dmg' \
--keychain-profile "notarytool-password" \
--wait
xcrun stapler staple 'release/Remix IDE 2-0.0.11-Alpha.dmg'
xcrun stapler staple 'release/Remix IDE 2-0.0.11-Alpha-Arm64.dmg'
spctl -a -t open -vvv --context context:primary-signature 'release/Remix IDE 2-0.0.11-Alpha.dmg'
spctl -a -t open -vvv --context context:primary-signature 'release/Remix IDE 2-0.0.11-Alpha-Arm64.dmg'
Loading…
Cancel
Save