From f202410f0df3b7df3396b2eda5f6127c499d503c Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Tue, 3 Feb 2026 23:04:07 -0500 Subject: [PATCH] Include license and readme in build output This is probably required for GPL compliance :-D --- README.md | 5 +++++ build.zig | 3 +++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 8944e47..b9c1b7e 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,8 @@ This is an implementation of the [Saprus protocol](https://gitlab.com/c2-games/r It is useful for developing clients either in Zig, or in any other language using the C bindings. Binary releases can be downloaded [here](https://cloud.zambito.xyz/s/7jJPTm68Zp3mN8F). + +The code for this can be found here: + +- https://tangled.org/zambyte.robbyzambito.me/zaprus +- https://git.robbyzambito.me/zaprus diff --git a/build.zig b/build.zig index 440917f..f53b634 100644 --- a/build.zig +++ b/build.zig @@ -7,6 +7,9 @@ const std = @import("std"); // build runner to parallelize the build automatically (and the cache system to // know when a step doesn't need to be re-run). pub fn build(b: *std.Build) void { + // Ensure the license is included in the output directory + b.installFile("LICENSE.md", "LICENSE.md"); + b.installFile("README.md", "README.md"); // Standard target options allow the person running `zig build` to choose // what target to build for. Here we do not override the defaults, which // means any target is allowed, and the default is native. Other options