2
0
mirror of https://github.com/frappe/books.git synced 2024-09-16 17:49:01 +00:00

Pushing Workaround for Apple teamId notarization issue

This commit is contained in:
Isaac GC 2024-01-24 18:39:18 -08:00
parent f877eb7d66
commit f90143acb6
2 changed files with 10 additions and 3 deletions

View File

@ -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);
}

View File

@ -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