From 1b03265a0e0d1d249f7e3a93a668c1a70406b46a Mon Sep 17 00:00:00 2001 From: Ganesh Rathinavel Medayil Date: Fri, 26 Apr 2024 19:37:59 +0530 Subject: [PATCH] Fixed notarize package --- README.md | 3 +++ internals/scripts/Notarize.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 031d4398..1f981e05 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,9 @@ $ "/path/to/OpenMTP.app/Contents/MacOS/OpenMTP" --remote-debugging-port=6363 - Goto **Sign-In and Security > App-Specific Passwords** - Click on **Generate Password...**, enter a password label and click _Create_ - Copy the displayed _app-specific-password_ + - `APPLE_TEAM_ID`: `` + - To get Team ID, go to your [Apple Developer Account](https://developer.apple.com/account#MembershipDetailsCard) + - Then click on "Membership details", and there you will find your Team ID. - `SENTRY_URL`: `https://sentry.io/` - `SENTRY_ORG`: `` - `SENTRY_PROJECT`: `` diff --git a/internals/scripts/Notarize.js b/internals/scripts/Notarize.js index f2bf34a4..ab84721a 100644 --- a/internals/scripts/Notarize.js +++ b/internals/scripts/Notarize.js @@ -25,6 +25,7 @@ exports.default = async (context) => { const appPath = path.join(appOutDir, `${appName}.app`); const appleId = process.env.APPLEID; const appleIdPassword = process.env.APPLE_APP_SPECIFIC_PASSWORD; + const appleTeamId = process.env.APPLE_TEAM_ID; if (!fs.existsSync(appPath)) { throw new Error(`Cannot find application at: ${appPath}`); @@ -38,5 +39,6 @@ exports.default = async (context) => { appPath, appleId, appleIdPassword, + teamId: appleTeamId, }); };