Skip to content

Commit

Permalink
feat: electron-builder bin executable
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Jun 12, 2017
1 parent dd0b208 commit 54ac796
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
9 changes: 7 additions & 2 deletions packages/electron-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"certs/root_certs.keychain"
],
"bin": {
"build": "./out/cli/cliOptions.js",
"electron-builder": "./out/cli/cli.js",
"elb": "./out/cli/cli.js",
"build": "./out/cli/cli.js",
"install-app-deps": "./out/cli/install-app-deps.js",
"node-gyp-rebuild": "./out/cli/node-gyp-rebuild.js"
},
Expand All @@ -30,14 +32,17 @@
"nsis",
"app",
"dmg",
"pkg",
"msi",
"exe",
"setup",
"Windows",
"OS X",
"MacOS",
"Mac",
"appx"
"appx",
"snap",
"portable"
],
"author": "Vladimir Krivosheev",
"contributors": ["Stefan Judis"],
Expand Down
16 changes: 8 additions & 8 deletions packages/electron-builder/src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export function configureBuildCommand(yargs: yargs.Yargs): yargs.Yargs {
group: publishGroup,
alias: "p",
describe: `Publish artifacts (to GitHub Releases), see ${underline("https://goo.gl/WMlr4n")}`,
choices: ["onTag", "onTagOrDraft", "always", "never"],
choices: ["onTag", "onTagOrDraft", "always", "never", <any>undefined],
})
.option("draft", {
group: publishGroup,
Expand All @@ -285,12 +285,12 @@ export function configureBuildCommand(yargs: yargs.Yargs): yargs.Yargs {
.option("platform", {
group: deprecated,
describe: "The target platform (preferred to use --mac, --win or --linux)",
choices: ["mac", "win", "linux", "darwin", "win32", "all"],
choices: ["mac", "win", "linux", "darwin", "win32", "all", <any>undefined],
})
.option("arch", {
group: deprecated,
describe: "The target arch (preferred to use --x64 or --ia32)",
choices: ["ia32", "x64", "all"],
choices: ["ia32", "x64", "all", <any>undefined],
})
.option("extraMetadata", {
alias: ["em"],
Expand All @@ -313,11 +313,11 @@ export function configureBuildCommand(yargs: yargs.Yargs): yargs.Yargs {
describe: "The path to an electron-builder config. Defaults to `electron-builder.yml` (or `json`, or `json5`), see " + underline("https://goo.gl/YFRJOM"),
})
.group(["help", "version"], "Other:")
.example("build -mwl", "build for macOS, Windows and Linux")
.example("build --linux deb tar.xz", "build deb and tar.xz for Linux")
.example("build --win --ia32", "build for Windows ia32")
.example("build --em.foo=bar", "set package.json property `foo` to `bar`")
.example("build --config.nsis.unicode=false", "configure unicode options for NSIS")
.example("electron-builder -mwl", "build for macOS, Windows and Linux")
.example("electron-builder --linux deb tar.xz", "build deb and tar.xz for Linux")
.example("electron-builder --win --ia32", "build for Windows ia32")
.example("electron-builder --em.foo=bar", "set package.json property `foo` to `bar`")
.example("electron-builder --config.nsis.unicode=false", "configure unicode options for NSIS")
}

/** @private */
Expand Down
File renamed without changes.

0 comments on commit 54ac796

Please sign in to comment.