diff --git a/README.md b/README.md index 37cd8bb..88bcf15 100644 --- a/README.md +++ b/README.md @@ -130,10 +130,11 @@ compile({ - Example: `['--with-dtrace', '--dest-cpu=x64']` - default: `[]` - #### `make: string[]` - - Array of arguments for the node build make step, on windows this step recieves options for vcBuild.bat - - default: `[]` or `['nosign', 'release']` for non windows systems + - Array of arguments for the node build make step + - default: `[]` - #### `vcBuild: string[]` - - Alias for `make` option + - Options for windows build + - default: `['nosign', 'release']` - #### `snapshot: string` - path to a file to be used as the warmup snapshot for the build - default: `null` diff --git a/package.json b/package.json index b4c0ec8..1018ffb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nexe", "description": "Create a single executable out of your Node.js application", "license": "MIT", - "version": "3.0.0-beta.2", + "version": "3.0.0-beta.3", "contributors": [ "Craig Condon (http://crcn.io)", "Jared Allard ", diff --git a/src/options.ts b/src/options.ts index 19933ca..0c00dc9 100644 --- a/src/options.ts +++ b/src/options.ts @@ -244,7 +244,7 @@ function normalizeOptions(input?: Partial): NexeOptions { options.targets.push(getTarget()) } options.ghToken = options.ghToken || process.env.GITHUB_TOKEN || '' - options.make = flatten(options.vcBuild, options.make) + options.make = flatten(isWindows ? options.vcBuild : options.make) options.configure = flatten(options.configure) options.resources = flatten(opts.resource, options.resources)