mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 20:46:38 +08:00
fix(electron): add back updater (#10814)
This commit is contained in:
@@ -14,6 +14,7 @@ import { registerEvents } from './events';
|
|||||||
import { registerHandlers } from './handlers';
|
import { registerHandlers } from './handlers';
|
||||||
import { logger } from './logger';
|
import { logger } from './logger';
|
||||||
import { registerProtocol } from './protocol';
|
import { registerProtocol } from './protocol';
|
||||||
|
import { registerUpdater } from './updater';
|
||||||
import { launch } from './windows-manager/launcher';
|
import { launch } from './windows-manager/launcher';
|
||||||
import { launchStage } from './windows-manager/stage';
|
import { launchStage } from './windows-manager/stage';
|
||||||
|
|
||||||
@@ -85,6 +86,7 @@ app
|
|||||||
.then(registerEvents)
|
.then(registerEvents)
|
||||||
.then(launch)
|
.then(launch)
|
||||||
.then(createApplicationMenu)
|
.then(createApplicationMenu)
|
||||||
|
.then(registerUpdater)
|
||||||
.catch(e => console.error('Failed create window:', e));
|
.catch(e => console.error('Failed create window:', e));
|
||||||
|
|
||||||
if (process.env.SENTRY_RELEASE) {
|
if (process.env.SENTRY_RELEASE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user