From cb0be78d1c2cd5ff8ed95825ac811ac38beb7c65 Mon Sep 17 00:00:00 2001 From: mbilker Date: Tue, 24 Nov 2015 00:16:04 -0500 Subject: [PATCH] fix(spectron): prevent execution for windows only --- build/tasks/spec-task.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/tasks/spec-task.coffee b/build/tasks/spec-task.coffee index 63a9717dc..52c927853 100644 --- a/build/tasks/spec-task.coffee +++ b/build/tasks/spec-task.coffee @@ -42,9 +42,9 @@ module.exports = (grunt) -> done = @async() npmPath = path.resolve "./build/node_modules/.bin/npm" - #if process.platform isnt 'darwin' - # grunt.log.error("run-spectron-specs only works on Mac OS X at the moment.") - # done(false) + if process.platform is 'win32' + grunt.log.error("run-spectron-specs only works on Mac OS X at the moment.") + done(false) if not fs.existsSync(executablePath) grunt.log.error("run-spectron-specs requires the built version of the app at #{executablePath}")