Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit a4664a8

Browse files
committed
Hide electron-builder
1 parent b362b78 commit a4664a8

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
.next
44
app
55
dist
6+
electron-builder.yml

electron-builder.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

main/background.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ if (isProd) {
7373
mainWindow.loadURL(renderPage("main"))
7474

7575
setInterval(() => {
76-
mainWindow.webContents.send('update-version', app.getVersion())
77-
})
76+
if (mainWindow) mainWindow.webContents.send('update-version', app.getVersion())
77+
}, 1000)
7878

7979
ipcMain.on('open-main', () => {
8080
mainWindow.show()

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"author": "Nemika Hajbour <nemika@bytestobits.dev>",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/BytesToBits/LockPass"
9+
"url": "https://github.com/BytesToBits/LockPass.git"
1010
},
1111
"main": "app/background.js",
1212
"scripts": {
1313
"dev": "nextron",
1414
"build": "nextron build",
1515
"build:all": "nextron build --all",
16+
"build:prod": "nextron build --win --publish always",
1617
"postinstall": "electron-builder install-app-deps"
1718
},
1819
"dependencies": {

0 commit comments

Comments
 (0)