mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
fix(electron): remove unused code
This commit is contained in:
@@ -38,18 +38,6 @@ export const registerUpdater = async () => {
|
|||||||
releaseType: buildType === 'stable' ? 'release' : 'prerelease',
|
releaseType: buildType === 'stable' ? 'release' : 'prerelease',
|
||||||
});
|
});
|
||||||
|
|
||||||
_autoUpdater.autoDownload = false;
|
|
||||||
_autoUpdater.allowPrerelease = buildType !== 'stable';
|
|
||||||
_autoUpdater.autoInstallOnAppQuit = false;
|
|
||||||
_autoUpdater.autoRunAppAfterInstall = true;
|
|
||||||
_autoUpdater.setFeedURL({
|
|
||||||
channel: buildType,
|
|
||||||
provider: 'github',
|
|
||||||
repo: 'AFFiNE',
|
|
||||||
owner: 'toeverything',
|
|
||||||
releaseType: buildType === 'stable' ? 'release' : 'prerelease',
|
|
||||||
});
|
|
||||||
|
|
||||||
if (isMacOS()) {
|
if (isMacOS()) {
|
||||||
_autoUpdater.on('update-available', () => {
|
_autoUpdater.on('update-available', () => {
|
||||||
_autoUpdater!.downloadUpdate();
|
_autoUpdater!.downloadUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user