mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
fix(spectron): prevent execution for windows only
This commit is contained in:
parent
4153741566
commit
2967e2e495
1 changed files with 3 additions and 3 deletions
|
@ -42,9 +42,9 @@ module.exports = (grunt) ->
|
||||||
done = @async()
|
done = @async()
|
||||||
npmPath = path.resolve "./build/node_modules/.bin/npm"
|
npmPath = path.resolve "./build/node_modules/.bin/npm"
|
||||||
|
|
||||||
#if process.platform isnt 'darwin'
|
if process.platform is 'win32'
|
||||||
# grunt.log.error("run-spectron-specs only works on Mac OS X at the moment.")
|
grunt.log.error("run-spectron-specs only works on Mac OS X at the moment.")
|
||||||
# done(false)
|
done(false)
|
||||||
|
|
||||||
if not fs.existsSync(executablePath)
|
if not fs.existsSync(executablePath)
|
||||||
grunt.log.error("run-spectron-specs requires the built version of the app at #{executablePath}")
|
grunt.log.error("run-spectron-specs requires the built version of the app at #{executablePath}")
|
||||||
|
|
Loading…
Reference in a new issue