Skip to content

fix(updater): preserve QueryaData and .portable during Linux bundle replace (#1055) - #1066

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1055-linux-portable-update-data-loss
Oct 4, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1055-linux-portable-update-data-loss

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1055

Description

In Linux portable installations, user connections and local data are stored in a relative QueryaData folder alongside the binary.
Previously, buildLinuxBundleReplaceScript invoked:

  • rsync -a --delete "$SRC"/ "$DST"/
  • or fallback rm -rf "$DST"/*

This wiped out QueryaData and .portable marker files upon completing an in-app update.

Changes

  1. Added --exclude='QueryaData' --exclude='.portable' to rsync.
  2. Replaced blanket rm -rf "$DST"/* fallback with find "$DST" -mindepth 1 -maxdepth 1 ! -name 'QueryaData' ! -name '.portable' -exec rm -rf {} +.
  3. Added test assertions in test/core/updater/update_platform_installer_test.dart.

@github-actions github-actions Bot added bug Something isn't working stability Theme parser epic label: stability core Core library logic and services P0 Critical blocker / Data loss labels Oct 4, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 24f53de into dev Oct 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Core library logic and services P0 Critical blocker / Data loss stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant