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": {
|
"dependencies": {
|
||||||
"appdata-path": "^1.0.0",
|
"appdata-path": "^1.0.0",
|
||||||
"ejs": "^3.0.1",
|
"ejs": "^3.0.1",
|
||||||
"electron-updater": "^4.2.4",
|
"electron-updater": "^5.0.1",
|
||||||
"esm": "^3.2.25",
|
"esm": "^3.2.25",
|
||||||
"single-instance": "^0.0.1"
|
"single-instance": "^0.0.1"
|
||||||
},
|
},
|
||||||
@ -31,15 +31,15 @@
|
|||||||
"@babel/core": "^7.9.6",
|
"@babel/core": "^7.9.6",
|
||||||
"@babel/preset-env": "^7.9.6",
|
"@babel/preset-env": "^7.9.6",
|
||||||
"@fortawesome/fontawesome-free": "^6.1.0",
|
"@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/eslint-plugin": "^5.15.0",
|
||||||
"@typescript-eslint/parser": "^5.15.0",
|
"@typescript-eslint/parser": "^5.15.0",
|
||||||
"babel-loader": "^8.1.0",
|
"babel-loader": "^8.1.0",
|
||||||
"concurrently": "^7.0.0",
|
"concurrently": "^7.0.0",
|
||||||
"copy-webpack-plugin": "^10.2.4",
|
"copy-webpack-plugin": "^11.0.0",
|
||||||
"css-loader": "^6.3.0",
|
"css-loader": "^6.3.0",
|
||||||
"electron": "^17.1.2",
|
"electron": "^19.0.4",
|
||||||
"electron-builder": "^22.11.5",
|
"electron-builder": "^23.0.3",
|
||||||
"eslint": "^8.11.0",
|
"eslint": "^8.11.0",
|
||||||
"image-minimizer-webpack-plugin": "^3.2.3",
|
"image-minimizer-webpack-plugin": "^3.2.3",
|
||||||
"imagemin": "^8.0.1",
|
"imagemin": "^8.0.1",
|
||||||
@ -49,7 +49,7 @@
|
|||||||
"imagemin-svgo": "^10.0.1",
|
"imagemin-svgo": "^10.0.1",
|
||||||
"mini-css-extract-plugin": "^2.1.0",
|
"mini-css-extract-plugin": "^2.1.0",
|
||||||
"sass": "^1.32.12",
|
"sass": "^1.32.12",
|
||||||
"sass-loader": "^12.1.0",
|
"sass-loader": "^13.0.0",
|
||||||
"svgo": "^2.3.1",
|
"svgo": "^2.3.1",
|
||||||
"ts-loader": "^9.1.2",
|
"ts-loader": "^9.1.2",
|
||||||
"typescript": "^4.0.2",
|
"typescript": "^4.0.2",
|
||||||
@ -89,6 +89,6 @@
|
|||||||
"icon": "frontend/images/logo.png",
|
"icon": "frontend/images/logo.png",
|
||||||
"category": "public.app-category.utilities"
|
"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> {
|
public async checkForUpdates(force: boolean = false): Promise<UpdateInfo | void> {
|
||||||
if (force || !this.updateInfo) {
|
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;
|
return this.updateInfo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user