Use buildDir to build setup exe path

This commit is contained in:
Kevin Sawicki
2014-11-13 08:46:12 -08:00
parent 9f1ffeee25
commit 01b75c4393

View File

@@ -36,7 +36,7 @@ module.exports = (grunt) ->
spawn {cmd, args}, (error) ->
return callback(error) if error?
setupExePath = path.join(grunt.config.get('atom.shellAppDir'), '..', 'installer', 'AtomSetup.exe')
setupExePath = path.resolve(grunt.config.get('atom.buildDir'), 'installer', 'AtomSetup.exe')
if fs.isFileSync(setupExePath)
args = [setupExePath]
spawn {cmd, args}, (error) -> callback(error)