summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-15 17:44:02 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit7cb3e8ee8224153c3361739335f4ec47267f0d59 (patch)
tree534d95525caadd147a59b9db5af3b54c51552a33 /build.zig
parentcf7cfd96a62b26321de970496670005cf411c94c (diff)
downloadpardes-7cb3e8ee8224153c3361739335f4ec47267f0d59.tar.gz
pardes-7cb3e8ee8224153c3361739335f4ec47267f0d59.zip
Release Pardes 0.3 and stamp the macOS package version
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 7b4a5e71..8a5b4c41 100644
--- a/build.zig
+++ b/build.zig
@@ -753,8 +753,14 @@ pub fn build(b: *std.Build) void {
const plist_out = plist.addOutputFileArg("Info.plist");
plist.addFileArg(b.path("src/macos/Info.plist"));
+ const version_plist = b.addSystemCommand(&.{
+ "plutil", "-replace", "CFBundleShortVersionString", "-string", zon.version, "-o",
+ });
+ const version_plist_out = version_plist.addOutputFileArg("Info.plist");
+ version_plist.addFileArg(plist_out);
+
const install_app_bin = b.addInstallFileWithDir(app_bin, .{ .custom = "pardes.app/Contents/MacOS" }, "pardes");
- const install_plist = b.addInstallFileWithDir(plist_out, .{ .custom = "pardes.app/Contents" }, "Info.plist");
+ const install_plist = b.addInstallFileWithDir(version_plist_out, .{ .custom = "pardes.app/Contents" }, "Info.plist");
const install_scene_kernel = b.addInstallFileWithDir(
b.path("shaders/crt.ci.metal"),
.{ .custom = "pardes.app/Contents/Resources" },