wip: feat: Migrated version command to zig.

This commit is contained in:
2026-04-17 16:42:15 -04:00
parent ce135e9ce4
commit 43b03e0aca
5 changed files with 24 additions and 15 deletions

View File

@@ -83,6 +83,13 @@ pub fn build(b: *std.Build) void {
}),
});
const version = b.option([]const u8, "version", "application version string") orelse "dev";
const options = b.addOptions();
options.addOption([]const u8, "version", version);
exe.root_module.addOptions("config", options);
// This declares intent for the executable to be installed into the
// install prefix when running `zig build` (i.e. when executing the default
// step). By default the install prefix is `zig-out/` but can be overridden