-
Notifications
You must be signed in to change notification settings - Fork 6
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
cbb7aa1
commit f5c8b65
Showing
5 changed files
with
55 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.yarn/cache/electron-notarize-npm-1.2.2-8e8b3da845-c66b175b6f.zip
This file was deleted.
Oops, something went wrong.
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 +1,29 @@ | ||
module.exports = require('@bithighlander/electron-builder-notarize') | ||
require('dotenv').config() | ||
const { notarize } = require('@electron/notarize') | ||
|
||
const isSet = (value) => value && value !== 'false' | ||
|
||
// electron-build hook to be used in electron-build pipeline in the future | ||
// =========================================================================== | ||
// Note: for now we don't use this at the moment. | ||
// Run ./notarize-cli.js instead | ||
exports.default = async function notarizing (context) { | ||
const { electronPlatformName, appOutDir } = context | ||
if (electronPlatformName !== 'darwin') return | ||
// skip notarization if secrets are not present in env | ||
if (!process.env.APPLE_ID_PASSWORD || !process.env.APPLE_ID) { | ||
console.log('Skipping notarizing, since secrets are not present in env.') | ||
return | ||
} | ||
|
||
const appName = context.packager.appInfo.productFilename | ||
const appPath = `${appOutDir}/mac-arm64/${appName}.app`; // Correct the path based on actual output directory | ||
return notarize({ | ||
appBundleId: 'com.keepkey.desktop', | ||
appPath, | ||
appleId: process.env.APPLE_ID, | ||
appleIdPassword: process.env.APPLE_ID_PASSWORD, | ||
tool: 'notarytool', | ||
teamId: 'DR57X8Z394' | ||
}) | ||
} |
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