Skip to content

Commit

Permalink
Fix run script on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnepsnai committed Jan 10, 2021
1 parent 7ded242 commit 78688e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const { spawn } = require('child_process');
const path = require('path');
const os = require('os');

function start() {
return new Promise(resolve => {
const file = path.resolve('node_modules', '.bin', 'electron');
const file = path.resolve('node_modules', '.bin', os.platform === 'win32' ? 'electron.cmd' : 'electron');
const args = [path.join('dist', 'main.js')];
const env = process.env;
env['DEVELOPMENT'] = '1';
Expand Down

0 comments on commit 78688e8

Please sign in to comment.