Files
reims-vgpu/scripts
Anees Iqbal 6fe69c67f9 🐛 Let reims-ctl update replace itself on Windows
On Windows, `reims-ctl update` and the TUI's Update stopped at "failed to move
...\cargo-installXXXX\reims-ctl.exe to ...\bin\reims-ctl.exe ... Access is
denied. (os error 5)": the update runs install-ctl.sh from the reims-ctl.exe it
replaces, and NTFS refuses to replace a running program's file. The update
died before __record-install, so QEMU could be built at the new commit while
the install record still named the old one.

install-ctl.sh now, on Windows only, renames reims-ctl.exe beside itself to
reims-ctl.exe.old-N before cargo install and copies it back, so cargo replaces
a copy nothing runs; and reims-util.exe likewise before __record-install,
which may install it while another reims-ctl runs it. Where the install fails
or keeps the program, the original is renamed back. reims-ctl removes the
files set aside as it starts, once nothing runs them, and the TUI reads its
restart path before the update. The update pulls the script before it runs
it, so an existing install heals on its next update.

A Windows user's update now completes, starts the new reims-ctl and records
the new commit. Linux and macOS take no new path.
2026-11-23 01:29:11 -08:00
..