Improved build.sh file and added AGENTS.md

This commit is contained in:
Storm Dragon committed 2026-10-10 13:09:38 -04:00
1 parent 6976c83294
commit c3b70469d8
3 files changed
+152 -4

No files matched your search

+17 -2
View File
@@ -22,6 +22,7 @@ Cthulhu-Go supervisor.
Building requires an x86_64 Linux host with:
- CMake 3.20 or newer;
- Make and native GCC/G++ (the script uses CMake's default Makefile generator);
- `pkg-config` and the GLib/GIO development files;
- Wine development tools: `winegcc`, `wineg++`, and `widl`;
- `x86_64-w64-mingw32-gcc` to build the native menu hook DLL
@@ -32,19 +33,33 @@ project yet; it needs a 32-bit Winegcc and 32-bit GLib/GIO development setup.
## Build
The convenience script builds in `./build` and installs to the per-user Cthulhu
libexec directory:
The convenience script builds in `./build`. Running it as a user installs to
`$HOME/.local/libexec/cthulhu/wine`; running it as root installs system wide to
`/usr/libexec/cthulhu/wine`:
```sh
./build.sh
sudo ./build.sh
```
Before building, the script checks required tools and GIO development files.
If any are missing, it lists them with Arch Linux package names and an install
command, then exits without building. Other distributions need equivalent
development packages. Removal does not require these dependencies.
Use `./build.sh -r` to remove the local installation, or
`sudo ./build.sh -r` to remove the system installation. If a user has no local
installation but a system installation exists, the script requests the latter
command without running sudo itself. Removal deletes only the three helper
files and leaves other directory contents untouched.
Alternative build and install locations may be supplied as positional
arguments. The second argument is the installation prefix, not the final
helper directory:
```sh
./build.sh /tmp/wine-access-build "$HOME/.local"
./build.sh -r /tmp/wine-access-build "$HOME/.local"
```
That installs the helper and its Winelib sidecar as: