Skip to content

Commit 445ca84

Browse files
Ready for run
1 parent 09354c6 commit 445ca84

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
/dist
3-
HemisApp-win32-x64
3+
HemisApp-win32-x64
4+
windows

bun.lockb

89.7 KB
Binary file not shown.
File renamed without changes.

icons/icon.ico

21.9 KB
Binary file not shown.

main.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
const { app, BrowserWindow } = require('electron');
2+
const path = require('path');
23

34
function createWindow() {
45
const win = new BrowserWindow({
56
width: 1280,
67
height: 800,
8+
icon: path.join(__dirname, 'icon.ico'),
79
webPreferences: {
810
nodeIntegration: false
911
}

package.json

+20-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,25 @@
55
"main": "main.js",
66
"scripts": {
77
"start": "electron .",
8-
"build": "electron-packager . HemisApp --platform=win32 --arch=x64 --icon=icon.ico"
8+
"build": "electron-builder"
9+
},
10+
"build": {
11+
"appId": "com.hemis.app",
12+
"productName": "HemisApp",
13+
"directories": {
14+
"output": "windows"
15+
},
16+
"win": {
17+
"icon": "icons/icon.ico",
18+
"target": [
19+
"nsis"
20+
]
21+
},
22+
"nsis": {
23+
"oneClick": false,
24+
"perMachine": true,
25+
"allowToChangeInstallationDirectory": true
26+
}
927
},
1028
"repository": {
1129
"type": "git",
@@ -22,6 +40,6 @@
2240
"homepage": "https://github.com/jasurhaydarovcode/My-Hemis-App#readme",
2341
"devDependencies": {
2442
"electron": "^34.0.2",
25-
"electron-packager": "^17.1.2"
43+
"electron-builder": "^25.1.8"
2644
}
2745
}

0 commit comments

Comments
 (0)