Fixes for appveyor build: path formats, correct electron binary

pull/749/head
Scott Nonnenberg 8 years ago
parent fd8b8910a3
commit fd7372e67e
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -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

@ -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/*.*

Loading…
Cancel
Save