also looking at this
fix(release): stop shipping the wrong binaries, and delete the dead notifier
#43
2 files
+24
-28
| @@ -82,10 +82,14 @@ pub fn build(b: *std.Build) void { | ||
| 82 | 82 | // Add system libraries based on platform |
| 83 | 83 | const target_os = target.result.os.tag; |
| 84 | 84 | linkPlatformLibraries(b, exe.root_module, target_os, macos_sdk); |
| 85 | b.installArtifact(exe); | |
| 86 | 85 | |
| 86 | // Deliberately not installed. `zig-out/bin` is what the release packager | |
| 87 | // zips, whole and unfiltered, so anything installed here ships to users — | |
| 88 | // and the demo was riding along in every archive, unsigned on macOS next | |
| 89 | // to a notarized `craft`, because the signing loop names only `craft`. | |
| 90 | // `zig build run-demo` still builds and runs it; it just does not end up | |
| 91 | // in the install prefix. | |
| 87 | 92 | const run_cmd = b.addRunArtifact(exe); |
| 88 | run_cmd.step.dependOn(b.getInstallStep()); | |
| 89 | 93 | |
| 90 | 94 | const run_step = b.step("run-demo", "Run the demo app"); |
| 91 | 95 | run_step.dependOn(&run_cmd.step); |