Skip to content

Commit

Permalink
feat: enable auto update
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Mar 28, 2024
1 parent ab3f7e1 commit 2b55dfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

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": "DocKit",
"productName": "DocKit",
"private": true,
"version": "0.2.2",
"version": "0.2.3",
"description": "A faster, better and more stable NoSQL desktop tools",
"author": "geekfun <[email protected]>",
"license": "Apache-2.0",
Expand Down
8 changes: 4 additions & 4 deletions src/electron/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { app, autoUpdater, BrowserWindow, ipcMain, shell } from 'electron';
import { app, BrowserWindow, ipcMain, shell } from 'electron';
import { updateElectronApp } from 'update-electron-app';
import path from 'path';
import { createMenu } from './menu';
import { debug } from '../common';
Expand Down Expand Up @@ -108,11 +109,10 @@ registerSourceFileApiListener(ipcMain);
registerFetchApiListener(ipcMain);

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

// In this file you can include the rest of your app's specific main process
Expand Down

0 comments on commit 2b55dfb

Please sign in to comment.