Skip to content

Commit

Permalink
forcefully update
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoxor committed Jun 16, 2022
1 parent 84cf6ea commit 78cc214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "amethyst",
"author": "amethyst <geoxor123@outlook.com>",
"productName": "Amethyst",
"version": "1.3.4",
"version": "1.3.5",
"main": "./release/dist/main/main.js",
"licenses": [
{
Expand Down
5 changes: 4 additions & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ if (!IS_DEV) {
app
.whenReady()
.then(() => import("electron-updater"))
.then(({ autoUpdater }) => autoUpdater.checkForUpdatesAndNotify())
.then(({ autoUpdater }) => {
autoUpdater.checkForUpdates();
autoUpdater.on("update-downloaded", () => autoUpdater.quitAndInstall(true, true));
})
.catch(e => console.error("Failed check updates:", e));
}

0 comments on commit 78cc214

Please sign in to comment.