Upgrade dependencies, electron 19.0.4
This commit is contained in:
parent
db4a431ac5
commit
61c9057191
14
package.json
14
package.json
@ -23,7 +23,7 @@
|
||||
"dependencies": {
|
||||
"appdata-path": "^1.0.0",
|
||||
"ejs": "^3.0.1",
|
||||
"electron-updater": "^4.2.4",
|
||||
"electron-updater": "^5.0.1",
|
||||
"esm": "^3.2.25",
|
||||
"single-instance": "^0.0.1"
|
||||
},
|
||||
@ -31,15 +31,15 @@
|
||||
"@babel/core": "^7.9.6",
|
||||
"@babel/preset-env": "^7.9.6",
|
||||
"@fortawesome/fontawesome-free": "^6.1.0",
|
||||
"@types/node": "^14.6.2",
|
||||
"@types/node": "^16.11.41",
|
||||
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
||||
"@typescript-eslint/parser": "^5.15.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"concurrently": "^7.0.0",
|
||||
"copy-webpack-plugin": "^10.2.4",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"css-loader": "^6.3.0",
|
||||
"electron": "^17.1.2",
|
||||
"electron-builder": "^22.11.5",
|
||||
"electron": "^19.0.4",
|
||||
"electron-builder": "^23.0.3",
|
||||
"eslint": "^8.11.0",
|
||||
"image-minimizer-webpack-plugin": "^3.2.3",
|
||||
"imagemin": "^8.0.1",
|
||||
@ -49,7 +49,7 @@
|
||||
"imagemin-svgo": "^10.0.1",
|
||||
"mini-css-extract-plugin": "^2.1.0",
|
||||
"sass": "^1.32.12",
|
||||
"sass-loader": "^12.1.0",
|
||||
"sass-loader": "^13.0.0",
|
||||
"svgo": "^2.3.1",
|
||||
"ts-loader": "^9.1.2",
|
||||
"typescript": "^4.0.2",
|
||||
@ -89,6 +89,6 @@
|
||||
"icon": "frontend/images/logo.png",
|
||||
"category": "public.app-category.utilities"
|
||||
},
|
||||
"electronVersion": "15.0.0"
|
||||
"electronVersion": "19.0.4"
|
||||
}
|
||||
}
|
||||
|
@ -29,10 +29,11 @@ export default class Updater {
|
||||
|
||||
public async checkForUpdates(force: boolean = false): Promise<UpdateInfo | void> {
|
||||
if (force || !this.updateInfo) {
|
||||
this.updateInfo = (await autoUpdater.checkForUpdates()).updateInfo;
|
||||
const updateCheckResult = await autoUpdater.checkForUpdates();
|
||||
this.updateInfo = updateCheckResult?.updateInfo;
|
||||
}
|
||||
|
||||
if (this.updateInfo.version !== this.getCurrentVersion().raw) {
|
||||
if (this.updateInfo && this.updateInfo.version !== this.getCurrentVersion().raw) {
|
||||
return this.updateInfo;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user