Correct the path to the executable on windows

This commit is contained in:
Matt Colyer
2013-12-17 09:51:45 -08:00
parent d8f5ef71cd
commit 3918435c7f

View File

@@ -42,7 +42,10 @@ module.exports = (grunt) ->
runCoreSpecs = (callback) ->
contentsDir = grunt.config.get('atom.contentsDir')
appPath = path.join(contentsDir, 'MacOS', 'Atom')
if process.platform is 'darwin'
appPath = path.join(contentsDir, 'MacOS', 'Atom')
else if process.platform is 'win32'
appPath = path.join(contentsDir, 'atom.exe')
resourcePath = process.cwd()
coreSpecsPath = path.resolve('spec')