Repository navigation
fix(updater): skip app_updater checks and installs in dev builds - #1117
Conversation
`tauri-plugin-updater` assumes `current_exe` lives inside an `.app` bundle on macOS; running it in `tauri dev` replaces `target/debug/` with the downloaded bundle's `Contents/`, deleting `target/debug/asyar` and breaking macOS Accessibility/TCC permissions. Guard `check_and_maybe_download`, `apply_on_start`, and `run_idle_restart_check` with `cfg!(debug_assertions)` so dev builds never self-update.
|
No actionable comments were generated in the recent review. WalkthroughUpdater checks, startup application, and idle restart checks now return early in debug-assertion builds. Release builds retain their existing update and restart checks. ChangesUpdater debug-build guards
Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Merge Risk:
|
tauri-plugin-updaterassumescurrent_exelives inside an.appbundle on macOS; running it intauri devreplacestarget/debug/with the downloaded bundle'sContents/, deletingtarget/debug/asyarand breaking macOS Accessibility/TCC permissions.Guard
check_and_maybe_download,apply_on_start, andrun_idle_restart_checkwithcfg!(debug_assertions)so dev builds never self-update.What changed
Affected areas
asyar-sdk, extension runtime, IPC contracts, manifest)Manual smoke test & Validation
pnpm dev) and visually verified the fix/feature works.AI usage
asyar-contributionskill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.Boundaries
pnpm check:ci(or the relevant inner-loop checks) passes locally.Summary by CodeRabbit