Skip to content

Commit 0c99364

Browse files
authored
only use publisher config when updater enabled (#243)
1 parent ed873d7 commit 0c99364

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

resources/js/electron-builder.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const fileName = process.env.NATIVEPHP_APP_FILENAME;
1010
const appVersion = process.env.NATIVEPHP_APP_VERSION;
1111
const appCopyright = process.env.NATIVEPHP_APP_COPYRIGHT;
1212
const deepLinkProtocol = process.env.NATIVEPHP_DEEPLINK_SCHEME;
13+
const updaterEnabled = process.env.NATIVEPHP_UPDATER_ENABLED === 'true';
1314

1415
// Azure signing configuration
1516
const azurePublisherName = process.env.NATIVEPHP_AZURE_PUBLISHER_NAME;
@@ -129,11 +130,13 @@ export default {
129130
artifactName: appName + '-${version}.${ext}',
130131
},
131132
npmRebuild: false,
132-
publish: updaterConfig,
133133
extraMetadata: {
134134
name: fileName,
135135
homepage: appUrl,
136136
version: appVersion,
137137
author: appAuthor,
138-
}
138+
},
139+
...updaterEnabled
140+
? { publish: updaterConfig }
141+
: {}
139142
};

0 commit comments

Comments
 (0)