fix issues with script not being run every time

This commit is contained in:
Emil Lerch 2025-10-09 09:29:18 -07:00
parent 186651dce0
commit 11b5e1a267
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -80,6 +80,8 @@ pub fn build(b: *std.Build) void {
const script_path = b.pathFromRoot("fix_needed.sh");
const fix_needed = b.addSystemCommand(&.{script_path});
fix_needed.step.dependOn(&install_exe.step);
fix_needed.addFileInput(install_exe.emitted_bin.?);
fix_needed.has_side_effects = true;
_ = fix_needed.captureStdOut();
b.getInstallStep().dependOn(&fix_needed.step);