Skip to content

Desktop app: OVIS_UPDATE_URL on a build without a built-in feed fails to download (app-update.yml missing) #2803

Closed

Description

@devswha

What happens

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).

Found with origin/main b2d9e5d.

Activity

  1. added a commit that references this issue on Nov 5, 2026
    58432f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions