mirror of
https://github.com/aubreyrs/ToriClient.git
synced 2024-11-17 12:30:22 +00:00
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
|
const { app, BrowserWindow } = require('electron')
|
||
|
|
||
|
function createWindow() {
|
||
|
// Create the browser window.
|
||
|
mainWindow = new BrowserWindow({
|
||
|
width: 400,
|
||
|
height: 200
|
||
|
})
|
||
|
|
||
|
//use bytenode to convert js files to jsc
|
||
|
const bytenode = require("bytenode");
|
||
|
let compiledFilename = bytenode.compileFile({
|
||
|
filename: './temp.js',
|
||
|
output: './main.jsc'
|
||
|
});
|
||
|
//convert other Node.js files as required
|
||
|
}
|
||
|
|
||
|
app.whenReady().then(() => {
|
||
|
createWindow()
|
||
|
})
|