mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
fix(spectron): prevent execution for windows only
This commit is contained in:
parent
0f20c13501
commit
cb0be78d1c
1 changed files with 3 additions and 3 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue