PR feedback adressed

This commit is contained in:
Patrick Detlefsen 2015-10-20 19:25:03 +02:00
parent 6c4016af46
commit db3bc28937
4 changed files with 10 additions and 15 deletions

View file

@ -2,10 +2,10 @@ ChildProcess = require 'child_process'
fs = require 'fs'
path = require 'path'
appFolder = path.dirname(process.execPath) # i.e. my-app/app-0.1.13/
rootApplicationFolder = path.resolve(appFolder, '..') # i.e. my-app/
updateDotExe = path.join(rootApplicationFolder, 'Update.exe')
exeName = path.basename(process.execPath)
appFolder = path.dirname process.execPath # i.e. my-app/app-0.1.13/
rootApplicationFolder = path.resolve appFolder, '..' # i.e. my-app/
updateDotExe = path.join rootApplicationFolder, 'Update.exe'
exeName = path.basename process.execPath
# Spawn a command and invoke the callback when it completes with an error
# and the output from standard out.