From 5999429838a43750e70e3bf201229bf11f01e932 Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Mon, 11 Sep 2023 23:12:25 -0700 Subject: [PATCH] rename calc-zig to zig-sample --- samples/{calc-zig => zig-sample}/.gitignore | 2 +- samples/{calc-zig => zig-sample}/build.bat | 0 samples/{calc-zig => zig-sample}/build.zig | 2 +- samples/{calc-zig => zig-sample}/data/segoeui.ttf | Bin samples/{calc-zig => zig-sample}/icon.png | Bin samples/{calc-zig => zig-sample}/src/main.c | 0 samples/{calc-zig => zig-sample}/src/main.zig | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename samples/{calc-zig => zig-sample}/.gitignore (89%) rename samples/{calc-zig => zig-sample}/build.bat (100%) rename samples/{calc-zig => zig-sample}/build.zig (97%) rename samples/{calc-zig => zig-sample}/data/segoeui.ttf (100%) rename samples/{calc-zig => zig-sample}/icon.png (100%) rename samples/{calc-zig => zig-sample}/src/main.c (100%) rename samples/{calc-zig => zig-sample}/src/main.zig (100%) diff --git a/samples/calc-zig/.gitignore b/samples/zig-sample/.gitignore similarity index 89% rename from samples/calc-zig/.gitignore rename to samples/zig-sample/.gitignore index 8de307e..592c104 100644 --- a/samples/calc-zig/.gitignore +++ b/samples/zig-sample/.gitignore @@ -1,4 +1,4 @@ -Calc +Sample zig-out zig-cache liborca.a diff --git a/samples/calc-zig/build.bat b/samples/zig-sample/build.bat similarity index 100% rename from samples/calc-zig/build.bat rename to samples/zig-sample/build.bat diff --git a/samples/calc-zig/build.zig b/samples/zig-sample/build.zig similarity index 97% rename from samples/calc-zig/build.zig rename to samples/zig-sample/build.zig index 7cd4236..1ee8cd3 100644 --- a/samples/calc-zig/build.zig +++ b/samples/zig-sample/build.zig @@ -93,7 +93,7 @@ pub fn build(b: *std.Build) !void { b.installArtifact(wasm_lib); // Runs the orca build command - const bundle_cmd_str = [_][]const u8{ "orca", "bundle", "--orca-dir", "../..", "--name", "Calc", "--icon", "icon.png", "--resource-dir", "data", "zig-out/lib/module.wasm" }; + const bundle_cmd_str = [_][]const u8{ "orca", "bundle", "--orca-dir", "../..", "--name", "Sample", "--icon", "icon.png", "--resource-dir", "data", "zig-out/lib/module.wasm" }; var bundle_cmd = b.addSystemCommand(&bundle_cmd_str); bundle_cmd.step.dependOn(b.getInstallStep()); diff --git a/samples/calc-zig/data/segoeui.ttf b/samples/zig-sample/data/segoeui.ttf similarity index 100% rename from samples/calc-zig/data/segoeui.ttf rename to samples/zig-sample/data/segoeui.ttf diff --git a/samples/calc-zig/icon.png b/samples/zig-sample/icon.png similarity index 100% rename from samples/calc-zig/icon.png rename to samples/zig-sample/icon.png diff --git a/samples/calc-zig/src/main.c b/samples/zig-sample/src/main.c similarity index 100% rename from samples/calc-zig/src/main.c rename to samples/zig-sample/src/main.c diff --git a/samples/calc-zig/src/main.zig b/samples/zig-sample/src/main.zig similarity index 100% rename from samples/calc-zig/src/main.zig rename to samples/zig-sample/src/main.zig