From 3918435c7fa145f1e84a9edd6c835d2f0776f8fa Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Tue, 17 Dec 2013 09:51:45 -0800 Subject: [PATCH] Correct the path to the executable on windows --- tasks/spec-task.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/spec-task.coffee b/tasks/spec-task.coffee index f19b61478..6b50388f2 100644 --- a/tasks/spec-task.coffee +++ b/tasks/spec-task.coffee @@ -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')