Auto-update
Deskifier apps ship with auto-update wired to your S3 update channel. The autoUpdate namespace lets your app check for updates on demand, listen for download progress, and trigger the install-and-restart step from a custom UI.
For the full method list + payload types, see the SDK reference.
Common patterns
// Check on app launch, quietly.
const { updateAvailable, nextVersion } = await window.deskifier.autoUpdate.check();
if (updateAvailable) {
console.log(`Update ready: ${nextVersion}`);
await window.deskifier.autoUpdate.startUpdate(); // downloads in background
}
// Show a progress bar during download.
window.deskifier.autoUpdate.onProgress(({ percent }) => {
console.log(`Downloading ${percent}%`);
});
// Prompt the user when the download completes.
window.deskifier.autoUpdate.onAvailable(({ downloaded, nextVersion }) => {
if (downloaded) {
// Present your own "Restart to update" UI, then call install.
}
});
When to call it
Deskifier polls for updates automatically on a schedule; you only need this namespace when you want your own UI (a badge, a settings-panel "Check now" button, a forced upgrade dialog).