mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +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 ? {
|
const windowsSignConfiguration = process.env.WINDOWS_SIGN_EXECUTABLE ? {
|
||||||
hookModulePath: path.join(ELECTRON_FORGE_DIR, "sign-windows.cjs")
|
hookModulePath: path.join(ELECTRON_FORGE_DIR, "sign-windows.cjs")
|
||||||
} : undefined;
|
} : 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);
|
console.log("Got env ", process.env);
|
||||||
|
|
||||||
@ -31,12 +39,7 @@ module.exports = {
|
|||||||
overwrite: true,
|
overwrite: true,
|
||||||
asar: true,
|
asar: true,
|
||||||
icon: path.join(APP_ICON_PATH, "icon"),
|
icon: path.join(APP_ICON_PATH, "icon"),
|
||||||
osxSign: {},
|
...macosSignConfiguration,
|
||||||
osxNotarize: {
|
|
||||||
appleId: process.env.APPLE_ID,
|
|
||||||
appleIdPassword: process.env.APPLE_ID_PASSWORD,
|
|
||||||
teamId: process.env.APPLE_TEAM_ID
|
|
||||||
},
|
|
||||||
windowsSign: windowsSignConfiguration,
|
windowsSign: windowsSignConfiguration,
|
||||||
extraResource: [
|
extraResource: [
|
||||||
// All resources should stay in Resources directory for macOS
|
// All resources should stay in Resources directory for macOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user