Skip to content

Auto-install rclone: check at start and hourly - #63

Merged
mbeczynski merged 3 commits into
mainfrom
feat/auto-rclone
Nov 17, 2026
Merged

mbeczynski merged 3 commits into
mainfrom
feat/auto-rclone

Conversation

@mbeczynski

Copy link
Copy Markdown
Contributor

The app checks rclone at start and every hour; when missing or too old it installs it in the background (same SHA256-verified path as install-rclone, now swapped in atomically). A failure shows the error and the next attempt time; it is retried only at the next hourly check, no button. Missing Lima shows brew install lima (no brew from the app). Translations in all 21 languages, README updated. swift test: 483 tests, 0 failures.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AU1Mhuowk8ykxTtR79LkQe

mbeczynski and others added 2 commits November 17, 2026 21:05
…e window

Missing or too old rclone is downloaded in the background (SHA256-verified,
swapped in atomically); a failure shows the error and the next attempt and is
retried only at the next hourly check. No retry button. Missing Lima says to
run brew install lima. Texts in all languages, README updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AU1Mhuowk8ykxTtR79LkQe
…swap, scoped error, test no longer hangs)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AU1Mhuowk8ykxTtR79LkQe
@mbeczynski

Copy link
Copy Markdown
Contributor Author

Druga recenzja, punkty 1-7 w commicie 0b9de94:

  1. testNeverRunsTwoAtOnce: drugi tick w Task + yield; po usunieciu strazniczki pada w 0,2 s (wczesniej wisial).
  2. RcloneInstaller.swapIn: kopia obok, replaceItemAt/move, przy wyscigu 'file exists' -> replace; po replaceItemAt ponownie 0755 (zachowywal tryb starego pliku - realny blad znaleziony testem). Test rownoleglych podmian pada po mutacji.
  3. RcloneErrorSlot: instalacja czyści tylko własny komunikat.
  4. onChange .installed/.idle -> refreshDependencies().
  5. Testy granicy 1.65.0 ok / 1.64.2 odrzucone.
  6. Naglowek: wszystko poza porażką = 'Installing rclone' (tylko gdy brakuje samego rclone; z Lima zostaje 'Missing').
  7. Przypiete v1.75.1 + sumy SHA256 (arm64/amd64) w kodzie, bez pobierania SHA256SUMS i version.txt; test porownuje wersje z vm/cmsmb.yaml. Decyzja: pin dotyczy tylko potrzebnej instalacji (brak/za stary/nieczytelny); dzialajace rclone >= 1.65 (np. 1.76.0) nie jest degradowane. Reczne install-rclone instaluje pin. Usunieto nieuzywane tlumaczenie.
    swift test: 496 testow, 0 bledow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AU1Mhuowk8ykxTtR79LkQe
@mbeczynski
mbeczynski merged commit 76db405 into main Nov 17, 2026
5 checks passed
@mbeczynski
mbeczynski deleted the feat/auto-rclone branch November 17, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant