mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(forge): bypass macos signing when building locally
This commit is contained in:
parent
6e1b8ba932
commit
543d61590f
@ -19,6 +19,14 @@ const baseLinuxMakerConfigOptions = {
|
||||
const windowsSignConfiguration = process.env.WINDOWS_SIGN_EXECUTABLE ? {
|
||||
hookModulePath: path.join(ELECTRON_FORGE_DIR, "sign-windows.cjs")
|
||||
} : undefined;
|
||||
const macosSignConfiguration = process.env.APPLE_ID ? {
|
||||
osxSign: {},
|
||||
osxNotarize: {
|
||||
appleId: process.env.APPLE_ID,
|
||||
appleIdPassword: process.env.APPLE_ID_PASSWORD,
|
||||
teamId: process.env.APPLE_TEAM_ID
|
||||
}
|
||||
} : undefined;
|
||||
|
||||
console.log("Got env ", process.env);
|
||||
|
||||
@ -31,12 +39,7 @@ module.exports = {
|
||||
overwrite: true,
|
||||
asar: true,
|
||||
icon: path.join(APP_ICON_PATH, "icon"),
|
||||
osxSign: {},
|
||||
osxNotarize: {
|
||||
appleId: process.env.APPLE_ID,
|
||||
appleIdPassword: process.env.APPLE_ID_PASSWORD,
|
||||
teamId: process.env.APPLE_TEAM_ID
|
||||
},
|
||||
...macosSignConfiguration,
|
||||
windowsSign: windowsSignConfiguration,
|
||||
extraResource: [
|
||||
// All resources should stay in Resources directory for macOS
|
||||
|
Loading…
x
Reference in New Issue
Block a user