Build functionality added

This commit is contained in:
2026-02-22 23:06:20 +01:00
parent 1108b1e9fc
commit 354e2a3cbe
4 changed files with 3981 additions and 8 deletions

BIN
docs/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

3977
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,11 +17,19 @@
"scripts": {
"start": "electron .",
"test": "test",
"build": "electron-builder",
"format": "prettier --write \"./**/*.{js,json,css,md,html}\"",
"format:check": "prettier --check \"src/**/*.{js,json,css,md,html}\""
},
"devDependencies": {
"electron": "^40.4.1",
"electron": "^40.6.0",
"electron-builder": "^26.8.1",
"prettier": "^3.8.1"
},
"build": {
"appId": "io.github.jjsalinas.wireguard-gui",
"mac": { "target": "dmg" },
"win": { "target": "nsis" },
"linux": { "target": "AppImage" }
}
}

View File

@@ -1,9 +1,11 @@
const { app, BrowserWindow } = require("electron/main");
const createWindow = () => {
const path = require("path");
const win = new BrowserWindow({
width: 800,
height: 600,
icon: path.join(__dirname, "../docs/icon.png")
});
win.loadFile("src/gui/gui.html");