libghostty-vt: allow version to be customized from the Zig build command

This commit is contained in:
Jeffrey C. Ollie
2026-04-04 17:04:01 -05:00
parent 0a4cf5877e
commit 06144d30f2
7 changed files with 55 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ const buildpkg = @import("src/build/main.zig");
const app_zon_version = @import("build.zig.zon").version;
/// Libghostty version. We use a separate version from the app.
const lib_version = "0.1.0";
const lib_version = "0.1.0-dev";
/// Minimum required zig version.
const minimum_zig_version = @import("build.zig.zon").minimum_zig_version;
@@ -37,6 +37,7 @@ pub fn build(b: *std.Build) !void {
const config = try buildpkg.Config.init(
b,
file_version orelse app_zon_version,
lib_version,
);
const test_filters = b.option(
[][]const u8,