UNPKG

440 BJavaScriptView Raw
1#!/usr/bin/env node
2
3const path = require('path');
4const launchElectronApp = require('../lib/launchElectronApp');
5
6// TODO waiting for [electron-compilei#230](https://github.com/electron/electron-compile/issues/230)
7// const argvStr = process.argv.slice(2).join('')
8// const entry = argvStr.indexOf('--compiled') > -1 ? '../entry/compiled.js' : '../index.js'
9const entry = '../index.js';
10
11launchElectronApp(path.resolve(__dirname, entry));