Add auto-update and fix bug
This commit is contained in:
parent
cf00173fe9
commit
e00827c197
1
main.js
1
main.js
|
@ -2,6 +2,7 @@
|
||||||
const { app, BrowserWindow, session } = require('electron')
|
const { app, BrowserWindow, session } = require('electron')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
require("v8-compile-cache");
|
require("v8-compile-cache");
|
||||||
|
require("update-electron-app")();
|
||||||
let mainWindow
|
let mainWindow
|
||||||
require("./menu.js")
|
require("./menu.js")
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -12,6 +12,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"custom-electron-titlebar": "3.2.6",
|
"custom-electron-titlebar": "3.2.6",
|
||||||
|
"update-electron-app": "^2.0.1",
|
||||||
"v8-compile-cache": "^2.3.0"
|
"v8-compile-cache": "^2.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -3,7 +3,6 @@ const customTitlebar = require('custom-electron-titlebar')
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
new customTitlebar.Titlebar({
|
new customTitlebar.Titlebar({
|
||||||
backgroundColor: customTitlebar.Color.fromHex("#2C2F33"),
|
backgroundColor: customTitlebar.Color.fromHex("#2C2F33"),
|
||||||
titleHorizontalAlignment
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue