diff --git a/.circleci/config.yml b/.circleci/config.yml index 464ed08c60..de0ddeacc7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/apps/remixdesktop/afterbuild.js b/apps/remixdesktop/afterbuild.js index eaf95ea217..2dd3ca592d 100644 --- a/apps/remixdesktop/afterbuild.js +++ b/apps/remixdesktop/afterbuild.js @@ -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}`); diff --git a/apps/remixdesktop/notarize.sh b/apps/remixdesktop/notarize.sh new file mode 100644 index 0000000000..7f3d6c1c56 --- /dev/null +++ b/apps/remixdesktop/notarize.sh @@ -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' \ No newline at end of file