diff --git a/Gruntfile.js b/Gruntfile.js index cea3b6f64..15e8d5f0c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -351,8 +351,9 @@ module.exports = function(grunt) { var failure; var Application = require('spectron').Application; + var electronBinary = process.platform === 'win32' ? 'electron.cmd' : 'electron'; var app = new Application({ - path: path.join(__dirname, 'node_modules', '.bin', 'electron'), + path: path.join(__dirname, 'node_modules', '.bin', electronBinary), args: [path.join(__dirname, 'main.js')], env: { NODE_ENV: environment diff --git a/appveyor.yml b/appveyor.yml index f827b716b..01820f6e4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,11 +12,11 @@ install: build_script: - yarn run generate - - ./node_modules/.bin/build --em.environment=%SIGNAL_ENV% --publish=never + - node_modules\.bin\build --em.environment=%SIGNAL_ENV% --publish=never test_script: - - ./node_modules/.bin/grunt test-release:win - - yarn test + - node_modules\.bin\grunt test-release:win + - node_modules\.bin\grunt test artifacts: - path: dist/*.*