You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop app: OVIS_UPDATE_URL on a build without a built-in feed fails to download (app-update.yml missing) #2803
A desktop app built without an update feed (no OVIS_UPDATE_FEED at build time) and started with OVIS_UPDATE_URL=https://… finds the update but cannot download it. <user data>/logs / stderr show:
Found version 0.0.2 (url: Ovis-0.0.2-x86_64.AppImage)
Downloading update from Ovis-0.0.2-x86_64.AppImage
Update check failed: ENOENT: no such file or directory, open '…/resources/app-update.yml'
(node) UnhandledPromiseRejectionWarning: Error: ENOENT: … app-update.yml
So Restart to Update never appears.
Why
updatePlan (app/electron/src/updates.ts) enables updates for OVIS_UPDATE_URL even when the build has no app-update.yml, and startUpdates only calls autoUpdater.setFeedURL. electron-updater still reads app-update.yml when it downloads (updaterCacheDirName in AppUpdater.getOrCreateDownloadHelper), and the file is not there.
Expected
Either OVIS_UPDATE_URL works on any packaged build (e.g. the app writes an update config with an updaterCacheDirName to its user data folder and sets autoUpdater.updateConfigPath), or updatePlan turns updates off for a build without a feed and the README says OVIS_UPDATE_URL only replaces a built-in feed.
Reproduce
Linux, from app/electron after bun run dist: package an old build without a feed (electron-builder --linux -c.extraMetadata.version=0.0.1), a newer one with OVIS_UPDATE_FEED-style publish settings, serve the newer one's folder over https and start the old AppImage with OVIS_UPDATE_URL pointing at it. A build that has a feed built in updates fine from OVIS_UPDATE_URL (bun scripts/e2e.ts --update).
Activity
test(desktop): end-to-end checks of a built desktop app (#2809)
fix(desktop): keep updates off for OVIS_UPDATE_URL on a build without…