This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
forked from SpiderBTT/NanoWallet-1
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix app codesigning and notarization (#672)
* fix: app notarization automated and code signing instructions added * next version is set to 2.6.3 * fix: PR feedbacks fixed, improved readme and notarize.js Co-authored-by: Baha <[email protected]>
- Loading branch information
1 parent
622298b
commit 631def2
Showing
5 changed files
with
72 additions
and
7 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "NEM-Wallet", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Cross-platform lite wallet for NEM", | ||
"author": "https://github.com/QuantumMechanics <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -93,7 +93,7 @@ | |
"build": { | ||
"appId": "com.nemgrouplimited.nemwallet", | ||
"extends": null, | ||
"copyright": "Copyright © 2019-2021 NEM", | ||
"copyright": "Copyright © 2019-2022 NEM", | ||
"productName": "Nem Wallet", | ||
"artifactName": "${name}-${os}-${arch}-${version}.${ext}", | ||
"icon": "./build/images/NanoWallet.icns", | ||
|
@@ -107,7 +107,8 @@ | |
"buildResources": "assets", | ||
"output": "release" | ||
}, | ||
"npmRebuild": false | ||
"npmRebuild": false, | ||
"afterSign": "scripts/notarize.js" | ||
}, | ||
"mac": { | ||
"category": "public.app-category.finance", | ||
|
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const { notarize } = require('electron-notarize'); | ||
const appBundleId = require('../package.json').build.appId; | ||
|
||
// You will need to notarize the application if the "Developer ID Certificate" is new | ||
exports.default = async (context) => { | ||
const { electronPlatformName, appOutDir } = context; | ||
if (electronPlatformName !== 'darwin') { | ||
console.log('Skipping notarization because this is not a macOS build.'); | ||
return; | ||
} else if (process.env.DESKTOP_APP_NOTARIZE !== 'true') { | ||
console.log('Skipping notarization because DESKTOP_APP_NOTARIZE env is not set.'); | ||
return; | ||
} else if (process.env.DESKTOP_APP_APPLE_ID === undefined || process.env.DESKTOP_APP_APPLE_PASSWORD === undefined) { | ||
console.log('Skipping notarization because DESKTOP_APP_APPLE_ID or DESKTOP_APP_APPLE_PASSWORD env is not set.'); | ||
return; | ||
} | ||
const appName = context.packager.appInfo.productFilename; | ||
const appPath = `${appOutDir}/${appName}.app`; | ||
|
||
console.log(`Notarizing ${appName} with bundleId[${appBundleId}] at ${appPath} ... (This might take several minutes)`); | ||
|
||
return await notarize({ | ||
appBundleId: appBundleId, | ||
appPath: appPath, | ||
appleId: process.env.DESKTOP_APP_APPLE_ID, | ||
appleIdPassword: process.env.DESKTOP_APP_APPLE_PASSWORD, | ||
}); | ||
}; |
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