A Windows user's folder can hold a space (C:\Users\First Last), and QEMU's
configure refuses a source or build directory with one ("main directory
cannot contain spaces nor colons"). With the library fixed, a user's install
would stop there next: install-ctl.sh builds QEMU in ~/.cache/reims-ctl, in
that folder. With the checkout in the folder too, as install.ps1 clones by
default, sdl3-sys stops first: it finds no SDL3, as a space splits the -L
path of the pkg-config file it reads. Both measured on the mini with a profile
named "Test User". No alias keeps the space out: meson takes realpath of its
directories, which turns an 8.3 short name back into the long one, and a volume
can have no short names (the mini's P: has none).
install.ps1 now clones into C:\reims-vgpu where the user's folder has a space,
saying so, and stops on a -Checkout with one. install-ctl.sh on Windows builds
and stages QEMU in the target directory where the cache directory has a space,
and stops before any download or build on a checkout or CARGO_TARGET_DIR with
one, naming the folder to use.
A new MSYS2 holds the package lists of the day its archive was made, and its
base archive ships them, so the check for a missing list found one and
skipped the update; packages its mirrors drop would then not install.
install.ps1 now runs pacman -Syuu twice before install-ctl.sh, as MSYS2
asks before any install. A stop throws rather than exits, which under
irm | iex would close the window, and a declined elevation leaves the
hypervisor platform off with a warning rather than stopping.
It installs what scripts/install-ctl.sh needs that Windows lacks, MSYS2 and
Git for Windows with winget, turns on the Windows Hypervisor Platform where
it is off (that step alone as an administrator, saying a restart is needed),
clones the repository where it does not run from a checkout, and runs
install-ctl.sh in MSYS2's CLANG64 shell. Each step is skipped where its
work is done, so a second run changes nothing it need not. -DryRun says what
each step finds and would do.