diff --git a/scripts/mac/createUniversalApp.js b/scripts/mac/createUniversalApp.js index 83517892..0ed22ba0 100644 --- a/scripts/mac/createUniversalApp.js +++ b/scripts/mac/createUniversalApp.js @@ -36,9 +36,9 @@ async function run() { await signAsync({ app: p, identity: `Developer ID Application: ${developerId}`, - optionsForFile: (filePath) => ({ + optionsForFile: () => ({ hardenedRuntime: true, - entitlements: `${filePath}scripts/mac/entitlements.plist`, + entitlements: 'scripts/mac/entitlements.plist', }), platform: 'darwin', version: electronVersion, @@ -47,10 +47,10 @@ async function run() { console.log(e); } await notarize({ - appleId: process.env.APPLE_ID, - appleIdPassword: '@keychain:AC_PASSWORD', - teamId: process.env.APPLE_TEAM_ID, - appBundleId: 'com.electron.react-native-debugger', + tool: 'notarytool', + // xcrun notarytool store-credentials "AC_PASSWORD" + // --apple-id "xxx" --team-id "xxx" --password "" + keychainProfile: 'AC_PASSWORD', appPath: p, }); } diff --git a/scripts/package-macos.sh b/scripts/package-macos.sh index 0b695797..3195403d 100755 --- a/scripts/package-macos.sh +++ b/scripts/package-macos.sh @@ -11,11 +11,6 @@ if [ "$1" == "--no-notarize" ]; then fi if [ "$NOTARIZE" != "0" ]; then - if [ -z "$APPLE_ID" ]; then - echo -e "Apple ID: \c" - read APPLE_ID - fi - if [ -z "$APPLE_DEVELOPER_NAME" ]; then echo -e "Apple Developer Name: \c" read APPLE_DEVELOPER_NAME