Skip to content

Commit

Permalink
fix: autoupdate throw errors
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Jan 21, 2024
1 parent 9da21e8 commit e7a90d7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions src/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ app.on('window-all-closed', () => {
app.quit();
}
});

autoUpdater.setFeedURL({
url: `https://dockit-eta.vercel.app//update/${process.platform}/${app.getVersion()}`,
});
try {
autoUpdater.setFeedURL({
url: `https://dockit-eta.vercel.app//update/${process.platform}/${app.getVersion()}`,
});
} catch (err) {
/* empty */
}

0 comments on commit e7a90d7

Please sign in to comment.