Skip to content

Commit

Permalink
Fixed notarize package
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrvel committed Apr 26, 2024
1 parent 7b6f54b commit 1b03265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`: `<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 Organization Name>`
- `SENTRY_PROJECT`: `<Sentry Project>`
Expand Down
2 changes: 2 additions & 0 deletions internals/scripts/Notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -38,5 +39,6 @@ exports.default = async (context) => {
appPath,
appleId,
appleIdPassword,
teamId: appleTeamId,
});
};

0 comments on commit 1b03265

Please sign in to comment.