Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/zero-native/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pub fn main(init: std.process.Init) !void {
.signing = .{ .mode = signing, .identity = try flagValue(args, "--identity"), .entitlements = try flagValue(args, "--entitlements"), .team_id = try flagValue(args, "--team-id") },
.archive = archive,
});
defer if (stats.archive_path) |path| allocator.free(path);
tooling.package.printDiagnostic(stats);
} else if (std.mem.eql(u8, command, "dev")) {
const manifest_path = try flagValue(args, "--manifest") orelse "app.zon";
Expand Down Expand Up @@ -114,6 +115,7 @@ pub fn main(init: std.process.Init) !void {
.web_engine = web_engine.engine,
.cef_dir = web_engine.cef_dir,
});
defer if (stats.archive_path) |path| allocator.free(path);
tooling.package.printDiagnostic(stats);
} else if (std.mem.eql(u8, command, "package-android")) {
const metadata = try tooling.manifest.readMetadata(allocator, init.io, try flagValue(args, "--manifest") orelse "app.zon");
Expand All @@ -128,6 +130,7 @@ pub fn main(init: std.process.Init) !void {
.web_engine = web_engine.engine,
.cef_dir = web_engine.cef_dir,
});
defer if (stats.archive_path) |path| allocator.free(path);
tooling.package.printDiagnostic(stats);
} else if (std.mem.eql(u8, command, "automate")) {
try automation_cli.run(allocator, init.io, args[2..]);
Expand Down Expand Up @@ -293,5 +296,6 @@ fn packageShortcut(allocator: std.mem.Allocator, io: std.Io, args: []const []con
.web_engine = web_engine.engine,
.cef_dir = web_engine.cef_dir,
});
defer if (stats.archive_path) |path| allocator.free(path);
tooling.package.printDiagnostic(stats);
}