mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-28 10:13:54 +00:00
use app_version from build.zig.zon
This commit is contained in:
@@ -2,6 +2,7 @@ const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const builtin = @import("builtin");
|
||||
const buildpkg = @import("src/build/main.zig");
|
||||
const appVersion = @import("build.zig.zon").version;
|
||||
|
||||
comptime {
|
||||
buildpkg.requireZig("0.15.1");
|
||||
@@ -15,7 +16,8 @@ pub fn build(b: *std.Build) !void {
|
||||
// This defines all the available build options (e.g. `-D`). If you
|
||||
// want to know what options are available, you can run `--help` or
|
||||
// you can read `src/build/Config.zig`.
|
||||
const config = try buildpkg.Config.init(b);
|
||||
|
||||
const config = try buildpkg.Config.init(b, appVersion);
|
||||
const test_filters = b.option(
|
||||
[][]const u8,
|
||||
"test-filter",
|
||||
|
||||
Reference in New Issue
Block a user