Skip to content

Commit

Permalink
chore: add file extension for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriknielaender committed Jul 28, 2024
1 parent ba2e28b commit 0a1a1de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Build = std.Build;

const min_zig_string = "0.13.0";
// Semantic version of your application
const version = std.SemanticVersion{ .major = 0, .minor = 4, .patch = 5 };
const version = std.SemanticVersion{ .major = 0, .minor = 4, .patch = 6 };

const CrossTargetInfo = struct {
crossTarget: std.zig.CrossTarget,
Expand Down Expand Up @@ -83,11 +83,11 @@ pub fn build(b: *Build) void {
const rel_exe_options_module = options.createModule();
rel_exe.root_module.addImport("options", rel_exe_options_module);

const file_name_ext = if (t.os.tag == .windows) ".exe" else "";

const install = b.addInstallArtifact(rel_exe, .{});
install.dest_dir = .prefix;
install.dest_sub_path = b.fmt("{s}-{s}-{s}", .{
@tagName(t.cpu.arch), @tagName(t.os.tag), rel_exe.name,
});
install.dest_sub_path = b.fmt("{s}-{s}-{s}{s}", .{ @tagName(t.cpu.arch), @tagName(t.os.tag), rel_exe.name, file_name_ext });

release.dependOn(&install.step);
}
Expand Down

0 comments on commit 0a1a1de

Please sign in to comment.