Replaces the Windows installer's PATH advice with commands that change PATH, and gives the script
its first tests.
Changed
- A Windows install that leaves the command off
PATHnow prints the PowerShell that fixes it
rather than telling the user to re-run the installer with-AddToPath. Re-running re-downloads
the archive and re-verifies its checksum and signature in order to append one string to the
registry, and it does that work after the payload probe - so on a machine whose
application-control policy refuses the payload, the re-run fails before it ever reaches the
PATHcode.-AddToPathis unchanged and remains the right way to opt in during an install. - Both printed commands check before they write, so pasting either one twice cannot leave a
duplicatePATHentry. The two are offered separately because they do different things: one
persists the entry for new terminals, the other repairs the session that is already open.
Added
- Windows contract tests for
install.ps1. The bootstrap script is the only Windows-specific
surface a user meets before rozi has run at all, and it had none: three defects shipped in it in
a single day, each reasoned about rather than exercised. The tests load the functions out of the
file that ships and cover the threePATHstates, the entry matching that separates them
(case, trailing separators, and a directory that merely shares a prefix), that every printed
PATHchange is guarded against a second run, and that the hint never prescribes reinstalling.
Full Changelog: v0.0.9...v0.0.10