consolidate download executables
This commit is contained in:
parent
1cbc4a846c
commit
5fd42b7138
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user