You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π Channel System - Deploy to different user groups
β±οΈ Delay Conditions - Control when updates are applied
Installation
npm install @capgo/tauri-updater
Tauri Plugin Requirements
Install and register these Tauri plugins in your app:
@tauri-apps/plugin-fs
@tauri-apps/plugin-http
@tauri-apps/plugin-process
Quick Start
import{TauriUpdater}from'@capgo/tauri-updater';constupdater=newTauriUpdater({appId: 'com.example.app',autoUpdate: true,});awaitupdater.initialize();// IMPORTANT: Call this on every app launch!awaitupdater.notifyAppReady();// Check for updates manuallyconstlatest=awaitupdater.getLatest();if(latest.url&&!latest.error){constbundle=awaitupdater.download({url: latest.url,version: latest.version,checksum: latest.checksum,});// Queue for next restartawaitupdater.next({id: bundle.id});}updater.addListener('download',(event)=>{console.log(`Download progress: ${event.percent}%`);});
API Reference
Core Methods
Method
Description
notifyAppReady()
Must be called on every launch - Confirms bundle loaded successfully
download(options)
Download a bundle from URL
next(options)
Queue bundle for next restart
set(options)
Immediately switch to bundle and reload
reload()
Reload the app with current bundle
delete(options)
Delete a bundle from storage
reset(options)
Reset to builtin or last successful bundle
Bundle Information
Method
Description
current()
Get current bundle and native version
list(options)
List all downloaded bundles
getNextBundle()
Get bundle queued for next restart
getFailedUpdate()
Get info about last failed update
getBuiltinVersion()
Get version shipped with app
Update Checking
Method
Description
getLatest(options)
Check server for latest version
Channel Management
Method
Description
setChannel(options)
Assign device to a channel
unsetChannel(options)
Remove channel assignment
getChannel()
Get current channel
listChannels()
List available channels
Delay Conditions
Method
Description
setMultiDelay(options)
Set conditions before update applies
cancelDelay()
Clear all delay conditions
Delay condition types:
background - Wait for app to be backgrounded (with optional duration)