Add auto-update and fix bug

This commit is contained in:
smartfridge 2021-05-01 19:29:51 +02:00
parent cf00173fe9
commit e00827c197
4 changed files with 125 additions and 240 deletions

View File

@ -2,6 +2,7 @@
const { app, BrowserWindow, session } = require('electron')
const path = require('path')
require("v8-compile-cache");
require("update-electron-app")();
let mainWindow
require("./menu.js")

362
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,7 @@
"license": "MIT",
"dependencies": {
"custom-electron-titlebar": "3.2.6",
"update-electron-app": "^2.0.1",
"v8-compile-cache": "^2.3.0"
},
"devDependencies": {

View File

@ -3,7 +3,6 @@ const customTitlebar = require('custom-electron-titlebar')
window.addEventListener('DOMContentLoaded', () => {
new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#2C2F33"),
titleHorizontalAlignment
});