Skip to content

Commit 8a14d00

Browse files
committed
release: v0.7.3
1 parent b19de24 commit 8a14d00

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
This file documents all changes made to the project and is updated before each release.
44

5+
## v0.7.3 [2025-12-16]
6+
### Fixed
7+
- update-self command was writing partial binary files due to writer not flushing by zip.zig
8+
- update-self does not add `.exe` for Windows releases
9+
510
## v0.7.2 [2025-12-15]
611
### Fixed
712
- Windows binary releases being published without `.exe` extension

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn build(b: *std.Build) !void {
1111
if (default_os.isBSD() or default_os.isDarwin() or default_os == std.Target.Os.Tag.linux) {
1212
common.link_libc = true;
1313
}
14-
const zip = b.dependency("zip", .{});
14+
const zip = b.dependency("zip", .{ .target = target, .optimize = optimize });
1515

1616
const zigverm = b.addExecutable(
1717
.{ .name = "zigverm", .root_module = b.createModule(.{

build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.{
22
.name = .zigverm,
3-
.version = "0.7.2",
3+
.version = "0.7.3",
44
.dependencies = .{
55
.zip = .{
6-
.url = "https://github.com/AMythicDev/zip.zig/archive/refs/tags/v0.3.3.tar.gz",
7-
.hash = "zip-0.3.3-eQGR_2pSAABP64MaMedp7ZYvEs2Nb9ODQgW0xdPJmWIX",
6+
.url = "https://github.com/AMythicDev/zip.zig/archive/refs/tags/v0.3.4.tar.gz",
7+
.hash = "zip-0.3.4-eQGR_7JSAABazroUrddw7q1saHUbm_fWjonrOxSnahTA",
88
},
99
},
1010
.minimum_zig_version = "0.15.1",

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Release = common.Release;
1717
const install = @import("install.zig");
1818
const Io = std.Io;
1919

20-
pub const Version = "0.7.2";
20+
pub const Version = "0.7.3";
2121

2222
pub fn main() !void {
2323
var aa = std.heap.ArenaAllocator.init(std.heap.page_allocator);

src/update-self.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ pub fn update_self(alloc: Allocator, io: Io, cp: CommonPaths) !void {
8080
var zipfile = try ZipArchive.openFromFileReader(alloc, &src);
8181
defer zipfile.close();
8282

83-
const zigverm_path = try std.mem.join(alloc, "/", &.{ dl_filename, "zigverm" });
84-
const zig_path = try std.mem.join(alloc, "/", &.{ dl_filename, "zigverm" });
83+
const zigverm_path = try std.mem.join(alloc, "", &.{ dl_filename, "/zigverm", if (builtin.os.tag == .windows) ".exe" else "" });
84+
const zig_path = try std.mem.join(alloc, "", &.{ dl_filename, "/zig", if (builtin.os.tag == .windows) ".exe" else "" });
85+
8586
try writeZipMember(zipfile, zigverm_path, cp);
8687
try writeZipMember(zipfile, zig_path, cp);
8788

0 commit comments

Comments
 (0)