try package

signmacosdesktop
filip mertens 9 months ago
parent b72a514d66
commit b65acce3f8
  1. 52
      .circleci/config.yml
  2. 22
      apps/remixdesktop/notarize.js
  3. 3
      apps/remixdesktop/package.json

@ -305,32 +305,32 @@ 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-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-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-0.0.11-Alpha.dmg'
xcrun stapler staple 'release/Remix IDE-0.0.11-Alpha-Arm64.dmg'
# - 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-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-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-0.0.11-Alpha.dmg'
# xcrun stapler staple 'release/Remix IDE-0.0.11-Alpha-Arm64.dmg'
- store_artifacts:
path: apps/remixdesktop/release/
destination: remixdesktop-mac

@ -0,0 +1,22 @@
const { notarize } = require('@electron/notarize');
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context; // Provided by electron-builder
console.log('NOTARIZING');
if (electronPlatformName !== 'darwin') {
return;
}
const appName = context.packager.appInfo.productFilename;
await notarize({
appBundleId: 'com.example.yourapp', // Your app's bundle ID
appPath: `${appOutDir}/${appName}.app`, // Path to your .app
appleId: process.env.APPLE_ID, // Your Apple ID
appleIdPassword: process.env.APPLE_ID_PASSWORD, // App-specific password
ascProvider: process.env.APPLE_TEAM_ID, // Your Apple Developer team ID (optional)
});
};

@ -95,7 +95,8 @@
"hardenedRuntime" : true,
"gatekeeperAssess": false,
"entitlements": "entitlements.mac.plist",
"entitlementsInherit": "entitlements.mac.plist"
"entitlementsInherit": "entitlements.mac.plist",
"afterSign": "notarize.js"
},
"dmg": {
"writeUpdateInfo": true,

Loading…
Cancel
Save