feat: implement latest version updater for macos (#2214)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Horus
2023-05-09 02:21:15 +08:00
committed by GitHub
parent d1457075b3
commit 41d4af1dc1
21 changed files with 263 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ import { openWorkspaceDatabase } from './data/sqlite';
import { deleteWorkspace, listWorkspaces } from './data/workspace';
import { getExchangeTokenParams, oauthEndpoint } from './google-auth';
import { sendMainEvent } from './send-main-event';
import { updateClient } from './updater';
let currentWorkspaceId = '';
@@ -144,6 +145,10 @@ function registerUIHandlers() {
ipcMain.handle('main:env-update', async (_, env, value) => {
process.env[env] = value;
});
ipcMain.handle('ui:client-update-install', async () => {
await updateClient();
});
}
function registerDBHandlers() {