hermes-agent/apps/bootstrap-installer/src-tauri/src
kshitijk4poor 39fee4f3bc test(installer): cover the post-update relaunch/install target derivation
The macOS self-update relaunches and installs over the app it derives via
resolve_hermes_desktop_app (.../Hermes.app/Contents/MacOS/Hermes ->
.../Hermes.app). That derivation is load-bearing for both the ditto
install target and the auto-relaunch (open <app>), but had no test.

Add unit coverage:
- resolve_hermes_desktop_app_finds_built_bundle: a fake built release tree
  resolves to the .app bundle on macOS (and the exe elsewhere).
- resolve_hermes_desktop_app_is_none_without_a_build: no build => None.

Verified the positive test FAILS if the .app parent-walk is wrong (e.g.
one too few .parent() hops), so it's a real guard against a regression
that would break the post-update relaunch target.

cargo test -> 17 passed.
2026-06-03 12:02:07 -07:00
..
bootstrap.rs test(installer): cover the post-update relaunch/install target derivation 2026-06-03 12:02:07 -07:00
events.rs fix(installer): stop mislabeling stdout-style progress as stderr 2026-06-03 10:38:34 -05:00
install_script.rs Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
lib.rs feat(installer): rename macOS installer to "Hermes" and make it a launcher (#37516) 2026-06-02 17:47:34 +00:00
main.rs Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
paths.rs Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
powershell.rs fix(desktop): self-update rebuilds and relaunches cleanly on macOS 2026-06-03 10:19:44 -05:00
update.rs fix(installer): never brick the install when a self-update swap fails 2026-06-03 12:01:31 -07:00