Disable electron-updater self-updater in flatpak - #47
Open
develop7 wants to merge 1 commit into
Open
Conversation
Contributor
|
🚧 Test build enqueued. |
Contributor
|
🚧 Started test build. |
Contributor
|
✅ Test build succeeded. To test this build, install it from the testing repository: Built for aarch64 and x86_64 architectures. |
develop7
marked this pull request as ready for review
August 1, 2026 13:22
Collaborator
Author
The desktop app's auto-updater (electron-updater + GitHub provider) is gated on UPDATER_ENABLED = app.isPackaged && CHANNEL !== dev, which is true inside a flatpak. It polls GitHub every 10 min, auto-downloads the .deb into the sandbox, and then fails to install (read-only /app). Patch app.asar in place (same-byte-length text replacement, so the asar layout and app.asar.unpacked entries are preserved) to set UPDATER_ENABLED = false. Updates come through the OS updater (GNOME Software / KDE Discover / flatpak update) instead. Upstream issue for a permanent fix: anomalyco/opencode#39670
develop7
force-pushed
the
push-ykylltxyzxkr
branch
from
August 2, 2026 13:52
be39432 to
bb3fa67
Compare
Contributor
|
🚧 Test build enqueued. |
Contributor
|
🚧 Started test build. |
Contributor
|
✅ Test build succeeded. To test this build, install it from the testing repository: Built for aarch64 and x86_64 architectures. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The desktop app's auto-updater (electron-updater + GitHub provider) is gated on
UPDATER_ENABLED = app.isPackaged && CHANNEL !== dev, which is true inside a flatpak. It polls GitHub every 10 min, auto-downloads the .deb into the sandbox, and then fails to install (read-only /app).Patch app.asar in place (same-byte-length text replacement, so the asar layout and app.asar.unpacked entries are preserved) to set UPDATER_ENABLED = false. Updates come through the OS updater (GNOME Software / KDE Discover / flatpak update) instead.
Upstream issue for a permanent fix: anomalyco/opencode#39670