mirror of
https://github.com/frappe/books.git
synced 2025-01-02 22:50:14 +00:00
Pushing Workaround for Apple teamId notarization issue
This commit is contained in:
parent
f877eb7d66
commit
f90143acb6
@ -153,7 +153,7 @@ async function packageApp() {
|
||||
delete builderArgs[opt];
|
||||
}
|
||||
|
||||
const buildOptions = {
|
||||
let buildOptions = {
|
||||
config: {
|
||||
directories: { output: packageDirPath, app: buildDirPath },
|
||||
files: ['**'],
|
||||
@ -162,6 +162,13 @@ async function packageApp() {
|
||||
...builderArgs,
|
||||
};
|
||||
|
||||
/**
|
||||
* electron-builder doesn't look for the APPLE_TEAM_ID environment variable for some reason.
|
||||
* This workaround allows an environment variable to be added to the electron-builder.yml config
|
||||
* collection. See: https://github.com/electron-userland/electron-builder/issues/7812
|
||||
*/
|
||||
buildOptions.mac = { notarize: { teamId: process.env.APPLE_TEAM_ID || "" } }
|
||||
|
||||
await builder.build(buildOptions);
|
||||
}
|
||||
|
||||
|
@ -11,8 +11,8 @@ mac:
|
||||
type: distribution
|
||||
category: public.app-category.finance
|
||||
icon: build/icon.icns
|
||||
notarize:
|
||||
appBundleId: io.frappe.books
|
||||
# notarize:
|
||||
# appBundleId: io.frappe.books
|
||||
hardenedRuntime: true
|
||||
gatekeeperAssess: false
|
||||
darkModeSupport: false
|
||||
|
Loading…
Reference in New Issue
Block a user