simplify arguments to npm run package
This commit is contained in:
@@ -58,7 +58,7 @@ To build for one platform:
|
|||||||
$ npm run package -- [platform]
|
$ npm run package -- [platform]
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `[platform]` is `--darwin`, `--linux`, or `--win32`.
|
Where `[platform]` is `darwin`, `linux`, or `win32`.
|
||||||
|
|
||||||
#### Windows build notes
|
#### Windows build notes
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ var BUILD_NAME = config.APP_NAME + '-v' + config.APP_VERSION
|
|||||||
|
|
||||||
function build () {
|
function build () {
|
||||||
var platform = process.argv[2]
|
var platform = process.argv[2]
|
||||||
if (platform === '--darwin') {
|
if (platform === 'darwin') {
|
||||||
buildDarwin(printDone)
|
buildDarwin(printDone)
|
||||||
} else if (platform === '--win32') {
|
} else if (platform === 'win32') {
|
||||||
buildWin32(printDone)
|
buildWin32(printDone)
|
||||||
} else if (platform === '--linux') {
|
} else if (platform === 'linux') {
|
||||||
buildLinux(printDone)
|
buildLinux(printDone)
|
||||||
} else {
|
} else {
|
||||||
buildDarwin(function (err, buildPath) {
|
buildDarwin(function (err, buildPath) {
|
||||||
|
|||||||
Reference in New Issue
Block a user