Desktop update compatibility
Coordinates desktop update installation with active work, local schema migrations and recovery limits.
desktop-updates-compatibility
See how it helpsWhen is it useful?
Use when a newer desktop build changes stored data or could interrupt running work.
What does it help you do?
- Separates update download from installation and required restart decisions.
- Prepares backups and repeat-safe migrations for local application data.
- Checks whether an older binary can read the migrated schema.
Try asking this
Plan an update during a running export, including restart timing and recovery if local migration fails. Download while the export runs, then install after completion. Rehearse migration failure on a retained data copy before claiming rollback is safe.
Detailed documentation
Read the skill’s original instructions, examples and checks in their authored language.
Show less
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 (
Included files 1
SKILL.md
About this skill package
desktop-updates-compatibility
desktop-updates-compatibility: Build desktop apps with reliable native boundaries, local data, process lifecycle, packaging and update behavior.
Show less
desktop-updates-compatibility
desktop-updates-compatibility: Build desktop apps with reliable native boundaries, local data, process lifecycle, packaging and update behavior.
Includes the complete skill and its supporting files (1 files). The exact authored scope is preserved below.
Original skill description (source language)
Use when implementing desktop auto-updaters (electron-updater, Tauri updater), staged release channels, local database schema migrations across versions, or safe update installation without interrupting active user work.
Install the skill, review its source and trust settings, then enable it for the relevant project or agent.
Requirements
- Orqestria installed on your computer.
