mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Add auto-update and fix bug
This commit is contained in:
parent
cf00173fe9
commit
e00827c197
4 changed files with 125 additions and 240 deletions
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")
|
||||||
|
|
||||||
|
|
362
package-lock.json
generated
362
package-lock.json
generated
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 a new issue