electron build

This commit is contained in:
Olivier Gagnon
2021-09-15 12:22:36 -04:00
parent bd26e2f9ca
commit ac80be1b40
7 changed files with 2447 additions and 53 deletions

BIN
electron/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

19
electron/main.js Normal file
View File

@@ -0,0 +1,19 @@
const { app, BrowserWindow, Menu } = require("electron");
Menu.setApplicationMenu(false);
function createWindow() {
const win = new BrowserWindow({
show: false,
webPreferences: {
devTools: false,
},
});
win.removeMenu();
win.maximize();
win.loadFile("index.html");
win.show();
}
app.whenReady().then(() => {
createWindow();
});

7
electron/package.json Executable file
View File

@@ -0,0 +1,7 @@
{
"name": "bitburner",
"version": "1.0.0",
"description": "A cyberpunk-themed programming incremental game",
"main": "main.js",
"author": "Daniel Xie"
}