diff --git a/package.json b/package.json index 2489d35..b3df19f 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": "2.0.0-rc.3", + "version": "2.0.0-rc.4", "contributors": [ "Craig Condon (http://crcn.io)", "Jared Allard ", diff --git a/src/compiler.ts b/src/compiler.ts index d573794..dd797ad 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -191,7 +191,7 @@ export class NexeCompiler { async compileAsync(target: NexeTarget) { const step = (this.compileStep = this.log.step('Compiling result')) const build = this.options.build - const location = this.getNodeExecutableLocation(target) + const location = this.getNodeExecutableLocation(build ? undefined : target) let binary = (await pathExistsAsync(location)) ? createReadStream(location) : null const header = this._generateHeader() if (!build && !binary) { diff --git a/src/options.ts b/src/options.ts index 6069d5a..68b94a2 100644 --- a/src/options.ts +++ b/src/options.ts @@ -6,7 +6,7 @@ import { getTarget, NexeTarget } from './target' import { EOL } from 'os' import * as chalk from 'chalk' -export const nexeVersion = '2.0.0-rc.3' +export const nexeVersion = '2.0.0-rc.4' export interface NexePatch { (compiler: NexeCompiler, next: () => Promise): Promise