Compare commits

..

2 Commits

Author SHA1 Message Date
James M. Greene e65ce4df11 fix: windows PATH setting for python configuration (#476)
fixes #474
2018-05-05 10:08:57 -05:00
calebboyd b91576973d chore: bump appveyor node version 2018-03-26 10:21:55 -05:00
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ environment:
GITHUB_TOKEN:
secure: 3wuEGJsppSKFvdwhp3jprUA9Zkc3WINlc/9oFXjhAR6J05lYMXP7Fl7lXTKpkGZx
install:
- ps: Install-Product node 6
- ps: Install-Product node 8
- yarn
build: off
test: off
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "2.0.0-rc.26",
"version": "2.0.0-rc.27",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+7 -2
View File
@@ -31,7 +31,7 @@ interface NexeHeader {
export class NexeCompiler<T extends NexeOptions = NexeOptions> {
private start = Date.now()
private env = { ...process.env }
private env: any
private compileStep: LogStep
public log = new Logger(this.options.loglevel)
public src: string
@@ -58,8 +58,13 @@ export class NexeCompiler<T extends NexeOptions = NexeOptions> {
this.log.step('nexe ' + version, 'info')
if (python) {
if (isWindows) {
this.env.PATH = '"' + dequote(normalize(python)) + '";' + this.env.PATH
// Do a little shuffling to correctly set the PATH regardless of property name case sensitivity
const originalPath = process.env.PATH
process.env.PATH = dequote(normalize(python)) + ';' + originalPath
this.env = { ...process.env }
process.env.PATH = originalPath
} else {
this.env = { ...process.env }
this.env.PYTHON = python
}
}