diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 05:10:58 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 05:10:58 +0000 |
| commit | 8b633927930095d2a8f6ffd48dc2f88a21b3e0bf (patch) | |
| tree | 5cb618a90c30757656e27656dad019146fbd4547 /README.md | |
| parent | 84cbd5fef8c67586f08cb7396f9d60ef4a07622f (diff) | |
build: invoke the PowerShell installer on Windows
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -203,8 +203,20 @@ For a custom prefix, add its `bin` directory to PATH; `man` normally discovers t adjacent `share/man` directory from PATH. If your man configuration overrides this, use `man -M "$HOME/.local/share/man" cpsc` for the local prefix. -On Windows, `install.ps1` installs for the current user without administrator -rights. Its source directory must contain `cpsc.exe` and `doc/cpsc.html`: +On Windows, install from an existing MinGW build with: + +```powershell +cmake --build build --target install +``` + +This is equivalent to `mingw32-make -C build install`: it generates the HTML +manual with Pandoc and calls `install.ps1`. The Windows default +`CMAKE_INSTALL_PREFIX` is `%LOCALAPPDATA%\Programs\cpsc`; an explicitly configured +prefix is preserved. To change it, run +`cmake -S . -B build -DCMAKE_INSTALL_PREFIX="D:/My Programs/cpsc"` before installing. + +You can also call `install.ps1` directly. It installs for the current user without +administrator rights. Its source directory must contain `cpsc.exe` and `doc/cpsc.html`: ```powershell powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -SourceDir .\build |
