Defined in: updater.ts:5
Result shape mirroring the backend minisign gate (kept wire-aligned).
optionalalg?:string
Defined in: updater.ts:9
optionalerror?:"format"|"keyid-mismatch"|"message-signature"|"global-signature"
Defined in: updater.ts:7
ok:
boolean
Defined in: updater.ts:6
optionaltrustedComment?:string
Defined in: updater.ts:8
Defined in: updater.ts:12
optionalartifactUrl?:string
Defined in: updater.ts:17
currentVersion:
string
Defined in: updater.ts:14
hasUpdate:
boolean
Defined in: updater.ts:13
optionallatestVersion?:string
Defined in: updater.ts:15
optionalnotes?:string
Defined in: updater.ts:16
optionalsha256?:string
Defined in: updater.ts:18
optionalsignature?:string
Defined in: updater.ts:20
minisign signature text over the artifact (present when published).
InstallResult = {
ok:false;reason:"no-update"; } | {bytes:number;ok:true;path:string; }
Defined in: updater.ts:69
UpdateProgress = {
data: {contentLength?:number; };event:"Started"; } | {data: {chunkLength:number; };event:"Progress"; } | {event:"Finished"; }
Defined in: updater.ts:64
constupdater:object
Defined in: updater.ts:99
check: (
url?) =>Promise<UpdateCheck>
string
Promise<UpdateCheck>
download: (
url,destination) =>Promise<{bytes:number;path:string; }>
string
string
Promise<{ bytes: number; path: string; }>
downloadAndInstall: (
onEvent,url?) =>Promise<InstallResult>
Streaming download+install (Tauri downloadAndInstall parity): pushes
Started → Progress×N → Finished over a Channel while downloading, then
enforces sha256 AND (when a pubkey is configured) minisign verification
before relaunching.
(event) => void
string
Promise<InstallResult>
install: (
url?) =>Promise<InstallResult>
One-shot update application (kept for back-compat): check → download →
both integrity gates → relaunch. ok: false = manifest had no newer
version.
string
Promise<InstallResult>
verify: (
file,sha256) =>Promise<{actual:string;ok:boolean; }>
string
string
Promise<{ actual: string; ok: boolean; }>
verifySignature: (
data,signature,pubkey,opts) =>Promise<SignatureVerifyResult>
Verifies minisign signatures over inline data (no filesystem) — exposes the updater's signature gate for tooling and tests.
Uint8Array
string
string
boolean
Promise<SignatureVerifyResult>
check(
url?):Promise<UpdateCheck>
Defined in: updater.ts:23
string
Promise<UpdateCheck>
download(
url,destination):Promise<{bytes:number;path:string; }>
Defined in: updater.ts:27
string
string
Promise<{ bytes: number; path: string; }>
downloadAndInstall(
onEvent,url?):Promise<InstallResult>
Defined in: updater.ts:79
Streaming download+install (Tauri downloadAndInstall parity): pushes
Started → Progress×N → Finished over a Channel while downloading, then
enforces sha256 AND (when a pubkey is configured) minisign verification
before relaunching.
(event) => void
string
Promise<InstallResult>
install(
url?):Promise<InstallResult>
Defined in: updater.ts:95
One-shot update application (kept for back-compat): check → download →
both integrity gates → relaunch. ok: false = manifest had no newer
version.
string
Promise<InstallResult>
verify(
file,sha256):Promise<{actual:string;ok:boolean; }>
Defined in: updater.ts:34
string
string
Promise<{ actual: string; ok: boolean; }>
verifySignature(
data,signature,pubkey,opts?):Promise<SignatureVerifyResult>
Defined in: updater.ts:45
Verifies minisign signatures over inline data (no filesystem) — exposes the updater's signature gate for tooling and tests.
Uint8Array
string
string
boolean
Promise<SignatureVerifyResult>