-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* osx ? * osx * link * small change download * again * see that way * more * wired * removed auth * remove env * Revert "remove env" This reverts commit 7a6f71f. * Revert "removed auth" This reverts commit 801767d. * old style * added mac * direct * direct changed * fix * I will write poem here * finally build but its not the end :D * too fast * again * shorter one :D * and again * single one * full name * download * equal * notarise strings * notarize * osx * boring * wiered once working once not * removed token * Try that one * white spaces * only osx * disabled auth * idk * precision * update packages * boring * osx * idk * parent 0c43412 author ArqTras <[email protected]> 1592164893 +0200 committer ArqTras <[email protected]> 1594853310 +0200 Revert "Update cs.js" This reverts commit 0c43412. osx ? osx link small change download again see that way more wired removed auth remove env Revert "remove env" This reverts commit 7a6f71f. Revert "removed auth" This reverts commit 801767d. old style added mac direct changed fix I will write poem here finally build but its not the end :D too fast again shorter one :D and again single one full name download equal notarise strings notarize osx boring wiered once working once not removed token Try that one white spaces only osx disabled auth idk precision update packages boring osx idk * show me some errors * . * try this one * direct * macos-10.14 * osx only * hmm * old style * again
- Loading branch information
Showing
5 changed files
with
1,315 additions
and
782 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,25 +1,40 @@ | ||
require("dotenv").config() | ||
const { notarize } = require("electron-notarize") | ||
require("dotenv").config(); | ||
const { notarize } = require("electron-notarize"); | ||
|
||
/* | ||
Pre-requisites: https://github.com/electron/electron-notarize#prerequisites | ||
1. Generate an app specific password | ||
2. Add ELECTRON_WALLET_APPLE_ID, ELECTRON_WALLET_APP_PASSWORD, ELECTRON_WALLET_TEAM_ID to .env file in the root directory (where quasar.conf.js is located) | ||
2. Add SIGNING_APPLE_ID, SIGNING_APP_PASSWORD, SIGNING_TEAM_ID to .env file in the root directory (where quasar.conf.js is located) | ||
*/ | ||
|
||
exports.default = async function notarizing (context) { | ||
const { electronPlatformName, appOutDir } = context | ||
if (electronPlatformName !== "darwin") { | ||
return | ||
} | ||
/* | ||
Notarizing: https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/ | ||
*/ | ||
|
||
const log = msg => console.log(`\n${msg}`); | ||
const isEmpty = v => !v || v.length === 0; | ||
|
||
exports.default = async function notarizing(context) { | ||
const { electronPlatformName, appOutDir } = context; | ||
if (electronPlatformName !== "darwin") { | ||
return; | ||
} | ||
log("Notarizing mac application"); | ||
|
||
const appName = context.packager.appInfo.productFilename; | ||
const { ELECTRON_WALLET_APPLE_ID, ELECTRON_WALLET_PASSWORD, ELECTRON_WALLET_TEAM_ID } = process.env; | ||
|
||
const appName = context.packager.appInfo.productFilename | ||
if (isEmpty(ELECTRON_WALLET_APPLE_ID) || isEmpty(ELECTRON_WALLET_PASSWORD)) { | ||
log("SIGNING_APPLE_ID or SIGNING_APP_PASSWORD not set.\nTerminating noratization."); | ||
return; | ||
} | ||
|
||
return notarize({ | ||
appBundleId: "com.arqma.electron-wallet", | ||
appPath: `${appOutDir}/${appName}.app`, | ||
appleId: process.env.ELECTRON_WALLET_APPLE_ID, | ||
appleIdPassword: process.env.ELECTRON_WALLET_PASSWORD, | ||
ascProvider: process.env.ELECTRON_WALLET_TEAM_ID | ||
}) | ||
} | ||
const options = { | ||
appBundleId: "com.arqma-project.electron-wallet", | ||
appPath: `${appOutDir}/${appName}.app`, | ||
appleId: ELECTRON_WALLET_APPLE_ID, | ||
appleIdPassword: ELECTRON_WALLET_PASSWORD | ||
}; | ||
if (!isEmpty(ELECTRON_WALLET_TEAM_ID)) options.ascProvider = ELECTRON_WALLET_TEAM_ID; | ||
return notarize(options); | ||
}; |
Oops, something went wrong.