Skip to content

Commit ae3fa66

Browse files
Add proper top level directory to linux release artifact
1 parent 72b78b9 commit ae3fa66

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ _build_release:
99
zig build release-artifacts
1010

1111
_pack_release:
12-
zip zig-out/release/comdirect-spending-calculator-x86_64-windows.zip zig-out/release/comdirect-spending-calculator.exe
13-
tar czf zig-out/release/comdirect-spending-calculator-x86_64-linux.tar.gz zig-out/release/comdirect-spending-calculator
12+
cd zig-out/release/comdirect-spending-calculator-x86_64-windows && zip ../comdirect-spending-calculator-x86_64-windows.zip comdirect-spending-calculator.exe
13+
tar czvf zig-out/release/comdirect-spending-calculator-x86_64-linux.tar.gz --directory zig-out/release/comdirect-spending-calculator-x86_64-linux .
1414

1515
# Create and pack release artifacts
1616
release:

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const std = @import("std");
22

3-
const csc_version = std.SemanticVersion{ .major = 1, .minor = 0, .patch = 1 };
3+
const csc_version = std.SemanticVersion{ .major = 1, .minor = 0, .patch = 2 };
44

55
pub fn build(b: *std.Build) void {
66
const target = b.standardTargetOptions(.{});
@@ -109,7 +109,7 @@ pub fn build(b: *std.Build) void {
109109
const install_artifcat_exe = b.addInstallArtifact(artifact_exe, .{
110110
.dest_dir = .{
111111
.override = .{
112-
.custom = "release/",
112+
.custom = "release/comdirect-spending-calculator" ++ "-" ++ @tagName(artifact_target.cpu_arch.?) ++ "-" ++ @tagName(artifact_target.os_tag.?),
113113
},
114114
},
115115
});

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = "comdirect-spending-calculator",
3-
.version = "1.0.0",
3+
.version = "1.0.2",
44
.paths = .{""},
55

66
.dependencies = .{

0 commit comments

Comments
 (0)