Pin zhook as a URL dependency instead of a relative path
build.zig.zon pointed at ../zhook, so a clone of this repo alone could not build. Pin the Codeberg tarball for f1b252e (current zhook master) with its hash; zig fetches it automatically. Verified by building with no sibling zhook checkout present.
This commit is contained in:
@@ -274,14 +274,14 @@ what you do with them on someone else's server is between you and that server's
|
||||
|
||||
### Building
|
||||
|
||||
Requires Zig 0.16 and a checkout of [zhook](https://codeberg.org/marcelinevq/zhook)
|
||||
as a sibling directory - `build.zig.zon` refers to it by relative path:
|
||||
Requires Zig 0.16. The only dependency is
|
||||
[zhook](https://codeberg.org/marcelinevq/zhook), the x86 inline hooking library,
|
||||
pinned in `build.zig.zon` and fetched automatically:
|
||||
|
||||
```sh
|
||||
git clone https://codeberg.org/marcelinevq/zhook
|
||||
git clone https://codeberg.org/MarcelineVQ/WeirdUtils
|
||||
cd WeirdUtils
|
||||
zig build # zig-out/bin/weirdutils.dll
|
||||
zig build # zig-out/bin/weirdutils.dll
|
||||
zig build all-variants -Doptimize=ReleaseSmall # + one DLL per module
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user