-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bc5256
commit 5777f35
Showing
4 changed files
with
586 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
const { notarize } = require('electron-notarize'); | ||
require('dotenv').config(); | ||
import {notarize} from '@electron/notarize' | ||
|
||
exports.default = async function notarizing(context) { | ||
const { electronPlatformName, appOutDir } = context; | ||
const {electronPlatformName, appOutDir} = context | ||
if (electronPlatformName !== 'darwin') { | ||
return; | ||
return | ||
} | ||
|
||
const appName = context.packager.appInfo.productFilename; | ||
const appName = context.packager.appInfo.productFilename | ||
|
||
// Package your app here, and code sign with hardened runtime | ||
await notarize({ | ||
appBundleId: 'com.getjusto.crisp', | ||
tool: 'notarytool', | ||
appPath: `${appOutDir}/${appName}.app`, | ||
appleId: process.env.APPLE_ID, | ||
appleIdPassword: process.env.APPLE_PASSWORD, | ||
teamId: process.env.APPLE_TEAM_ID, | ||
}); | ||
}; | ||
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD, | ||
teamId: process.env.APPLE_TEAM_ID | ||
}) | ||
} |
Oops, something went wrong.