consolidate download executables

This commit is contained in:
Emil Lerch 2022-01-05 11:37:46 -08:00
parent 1cbc4a846c
commit 5fd42b7138
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 1 additions and 5 deletions

View File

@ -34,11 +34,7 @@ pub fn build(b: *std.build.Builder) void {
const run_step = b.step("run", "Run the app (uplaods clipboard contents)"); const run_step = b.step("run", "Run the app (uplaods clipboard contents)");
run_step.dependOn(&run_cmd.step); run_step.dependOn(&run_cmd.step);
const downloadexe = switch (target.getOs().tag) { const downloadexe = b.addExecutable("clipboard-download", "src/download.zig");
.linux => b.addExecutable("clipboard-download", "src/download-linux.zig"),
.windows => b.addExecutable("clipboard-download", "src/download-windows.zig"),
else => std.os.exit(1),
};
configureExe(downloadexe, b, target, mode, zfetch_repo); configureExe(downloadexe, b, target, mode, zfetch_repo);