mirror of
https://github.com/frappe/books.git
synced 2024-11-08 06:44:06 +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];
|
delete builderArgs[opt];
|
||||||
}
|
}
|
||||||
|
|
||||||
const buildOptions = {
|
let buildOptions = {
|
||||||
config: {
|
config: {
|
||||||
directories: { output: packageDirPath, app: buildDirPath },
|
directories: { output: packageDirPath, app: buildDirPath },
|
||||||
files: ['**'],
|
files: ['**'],
|
||||||
@ -162,6 +162,13 @@ async function packageApp() {
|
|||||||
...builderArgs,
|
...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);
|
await builder.build(buildOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ mac:
|
|||||||
type: distribution
|
type: distribution
|
||||||
category: public.app-category.finance
|
category: public.app-category.finance
|
||||||
icon: build/icon.icns
|
icon: build/icon.icns
|
||||||
notarize:
|
# notarize:
|
||||||
appBundleId: io.frappe.books
|
# appBundleId: io.frappe.books
|
||||||
hardenedRuntime: true
|
hardenedRuntime: true
|
||||||
gatekeeperAssess: false
|
gatekeeperAssess: false
|
||||||
darkModeSupport: false
|
darkModeSupport: false
|
||||||
|
Loading…
Reference in New Issue
Block a user