feat: enhance build process and add local build scripts for Windows and Linux

This commit is contained in:
2026-04-22 03:53:50 +10:00
parent 21e895efff
commit b8a126fd69
5 changed files with 33 additions and 3 deletions

View File

@@ -86,6 +86,20 @@ app.setName('Paarrot');
autoUpdater.autoDownload = false;
autoUpdater.autoInstallOnAppQuit = true;
// Set feed URL manually as fallback if app-update.yml is missing
if (!isDev) {
try {
autoUpdater.setFeedURL({
provider: 'github',
owner: 'Paarrot',
repo: 'Paarrot-Desktop',
releaseType: 'release'
});
} catch (err) {
console.warn('Failed to set feed URL:', err);
}
}
autoUpdater.on('checking-for-update', () => {
console.log('Checking for updates...');
if (mainWindow) {