| 1 |
# tauri-updater-ui — Architecture |
| 2 |
|
| 3 |
Shared OTA update consent dialog for Tauri apps. |
| 4 |
|
| 5 |
## What It Does |
| 6 |
|
| 7 |
Single JS file (`updater.js`) that listens for `update-available` and `menu:check_updates` events from the Tauri backend. Shows a fixed-position banner with version info, release notes, and Install/Dismiss buttons. Download and install only happen after explicit user consent. |
| 8 |
|
| 9 |
## Consumers |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
| GO | `initUpdater({ ui: GoingsOn.ui, escapeHtml: GoingsOn.utils.escapeHtml, namespace: GoingsOn.updater })` | |
| 14 |
| BB | `initUpdater({ ui: BB.ui, escapeHtml: BB.utils.escapeHtml, namespace: BB.updater })` | |
| 15 |
|
| 16 |
## Key Paths |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
| All code | `updater.js` (single file, ~167 lines) | |
| 21 |
|