diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 17:44:02 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | 7cb3e8ee8224153c3361739335f4ec47267f0d59 (patch) | |
| tree | 534d95525caadd147a59b9db5af3b54c51552a33 /build.zig | |
| parent | cf7cfd96a62b26321de970496670005cf411c94c (diff) | |
| download | pardes-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.zig | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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" }, |
