Skip to content

Commit

Permalink
update zip
Browse files Browse the repository at this point in the history
  • Loading branch information
marler8997 committed May 4, 2024
1 parent ebc16ad commit dde66bb
Show file tree
Hide file tree
Showing 2 changed files with 681 additions and 365 deletions.
2 changes: 1 addition & 1 deletion zigup.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ fn installCompiler(allocator: Allocator, compiler_dir: []const u8, url: []const
var timer = try std.time.Timer.start();
var archive_file = try std.fs.openFileAbsolute(archive_absolute, .{});
defer archive_file.close();
try zip.pipeToFileSystem(installing_dir_opened, archive_file);
try zip.extract(installing_dir_opened, archive_file.seekableStream(), .{});
const time = timer.read();
loginfo("extracted archive in {d:.2} s", .{@as(f32, @floatFromInt(time)) / @as(f32, @floatFromInt(std.time.ns_per_s))});
}
Expand Down
Loading

0 comments on commit dde66bb

Please sign in to comment.