added platform tools download to build as well as generating compiled code

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent e0f647c7eb
commit 1996fa3c6d
9 changed files with 84 additions and 17 deletions
+5 -2
View File
@@ -9,5 +9,8 @@ v8.setFlagsFromString('--no-lazy');
if (!fs.existsSync(__dirname + '/app.jsc') || process.env.NODE_ENV === 'dev') {
bytenode.compileFile(__dirname + '/app.js', __dirname + '/app.jsc');
}
require('./app.jsc');
if (process.argv.indexOf('gen-code') > -1) {
require('electron').app.quit();
} else {
require('./app.jsc');
}