Build functionality added
This commit is contained in:
BIN
docs/icon.png
Normal file
BIN
docs/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
3977
package-lock.json
generated
3977
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -17,11 +17,19 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"test": "test",
|
"test": "test",
|
||||||
|
"build": "electron-builder",
|
||||||
"format": "prettier --write \"./**/*.{js,json,css,md,html}\"",
|
"format": "prettier --write \"./**/*.{js,json,css,md,html}\"",
|
||||||
"format:check": "prettier --check \"src/**/*.{js,json,css,md,html}\""
|
"format:check": "prettier --check \"src/**/*.{js,json,css,md,html}\""
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^40.4.1",
|
"electron": "^40.6.0",
|
||||||
|
"electron-builder": "^26.8.1",
|
||||||
"prettier": "^3.8.1"
|
"prettier": "^3.8.1"
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"appId": "io.github.jjsalinas.wireguard-gui",
|
||||||
|
"mac": { "target": "dmg" },
|
||||||
|
"win": { "target": "nsis" },
|
||||||
|
"linux": { "target": "AppImage" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
const { app, BrowserWindow } = require("electron/main");
|
const { app, BrowserWindow } = require("electron/main");
|
||||||
|
|
||||||
const createWindow = () => {
|
const createWindow = () => {
|
||||||
|
const path = require("path");
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
|
icon: path.join(__dirname, "../docs/icon.png")
|
||||||
});
|
});
|
||||||
|
|
||||||
win.loadFile("src/gui/gui.html");
|
win.loadFile("src/gui/gui.html");
|
||||||
|
|||||||
Reference in New Issue
Block a user