fix(electron): electron updater issues (#6005)

- generate-yml.js does not filter files correctly
- add version to generated bundles
- change `.AppImage` to `.appimage`. See https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/src/providers/Provider.ts#L88
This commit is contained in:
Peng Xiao
2024-03-05 03:27:51 +00:00
parent a9be19ce6c
commit 3fcbfe4d30
3 changed files with 16 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
import { app } from 'electron';
import { autoUpdater } from 'electron-updater';
import { isMacOS, isWindows } from '../../shared/utils';
import { buildType } from '../config';
import { logger } from '../logger';
import { CustomGitHubProvider } from './custom-github-provider';
@@ -82,8 +81,7 @@ export const registerUpdater = async () => {
return;
}
// TODO: support auto update on linux
const allowAutoUpdate = isMacOS() || isWindows();
const allowAutoUpdate = true;
autoUpdater.logger = logger;
autoUpdater.autoDownload = false;