Asztali frissítések kompatibilitása
Összehangolja a frissítést a futó munkával, helyi sémamigrációval és helyreállítási korlátokkal.
desktop-updates-compatibility
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha új verzió tárolt adatot módosít vagy futó munkát szakíthat meg.
Miben segít neked?
- Elválasztja a letöltést a telepítéstől és az újraindításról hozott döntéstől.
- Mentést és biztonságosan ismételhető migrációt készít elő a helyi adathoz.
- Ellenőrzi, hogy régebbi program olvashatja-e a módosított sémát.
Például ezt kérheted
Tervezz frissítést futó export mellett, újraindítási időzítéssel és helyi migrációhiba utáni helyreállítással. Export közben töltsd le, de csak utána telepítsd a frissítést. Megőrzött adatmásolaton próbáld ki a migrációs hibát a visszaállítás biztonságának állítása előtt.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Updates & Data Compatibility
Desktop users upgrade across arbitrary version gaps (v1.1.0 $\rightarrow$ v1.8.0), may have active background tasks running when an update downloads, and store their SQLite database locally on disk. Design updates so an upgrade never interrupts active work or corrupts local data.
Non-Disruptive Auto-Update Lifecycle
- Separate Download from Installation (
autoInstallOnAppQuit):- Download updates quietly in the background (
autoDownload = trueor user-confirmed) and verify cryptographic signatures and SHA-512 / Ed25519 checksums before staging. - Never force an immediate restart (
quitAndInstall()) while an agent run, file write, or user edit is in progress! - Surface a calm, non-blocking "Update ready — Restart to apply" badge in the UI, or apply the update automatically on the next clean quit (
autoInstallOnAppQuit = true) after stopping the embedded server and checkpointing SQLite.
- Download updates quietly in the background (
- Release Channels & Staged Rollout:
- Support explicit update channels (
stable,beta,canary) and staged rollout percentages (stagingPercentageinlatest.yml/latest-mac.yml) so new builds are validated by early adopters before reaching 100% of installations. - Ensure macOS auto-update feeds include both
.zip(required bySquirrel.Mac) and.dmg(for manual downloads) inlatest-mac.yml.
- Support explicit update channels (
Local Schema Migration & Forward/Backward Safety
Unlike a cloud database where an engineer watches a single migration run, a desktop SQLite migration runs unattended on thousands of diverse user machines at startup:
- Automatic Pre-Migration Database Backup:
- Before applying pending SQLite schema migrations when
user_version/ migration table version advances, copyapp.db(using SQLite's onlineVACUUM INTO 'app.db.pre-v1.8.0.bak'or file copy before opening writes) insideuserData/backups/and keep the last $N$ version snapshots.
- Before applying pending SQLite schema migrations when
- Idempotent, Transactional Migrations:
- Run each migration script inside an explicit transaction (
BEGIN IMMEDIATE ... COMMIT) and record applied versions in aschema_migrationstable. - If a migration fails on startup, roll back the transaction, log the exact error and schema version to the diagnostic log, and present a clear recovery dialog (offering to restore the automatic backup or export logs) rather than crashing with an blank white window.
- Run each migration script inside an explicit transaction (
- Downgrade Awareness:
- If the user launches an older application binary against a database already migrated by a newer version (
db_version > app_supported_version), detect the version mismatch immediately on startup and refuse to run destructive writes rather than silently corrupting newer columns.
- If the user launches an older application binary against a database already migrated by a newer version (
Csomagban lévő fájlok 1
SKILL.md
