Skip to content

Commit

Permalink
Merge pull request saltyshiomix#154 from beinbm/master
Browse files Browse the repository at this point in the history
added --publish option of electron-builder
  • Loading branch information
saltyshiomix authored Feb 28, 2021
2 parents a9b839c + 4ca77e6 commit 68a5522
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/nextron-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ const args = arg({
'--armv7l': Boolean,
'--arm64': Boolean,
'--config': String,
'--publish': String,
'-h': '--help',
'-v': '--version',
'-w': '--win',
'-m': '--mac',
'-l': '--linux',
'-c': '--config',
'-p': '--publish',
});

if (args['--help']) {
Expand All @@ -47,6 +49,9 @@ if (args['--help']) {
--ia32 builds for ia32
--armv7l builds for armv7l
--arm64 builds for arm64
--publish -p Publish artifacts (see https://goo.gl/tSFycD)
[choices: "onTag", "onTagOrDraft", "always", "never", undefined]
`);
process.exit(0);
}
Expand Down Expand Up @@ -97,6 +102,10 @@ function createBuilderArgs() {
results.push('--config');
results.push(args['--config'] || 'electron-builder.yml');
}
if (args['--publish']) {
results.push('--publish');
results.push(args['--publish']);
}
if (args['--all']) {
results.push('-wml');
results.push(...createArchArgs());
Expand Down

0 comments on commit 68a5522

Please sign in to comment.