From fec0815161ebf25b21d03685148d41e700bbd130 Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Fri, 29 Aug 2025 22:18:50 +0200 Subject: [PATCH] Always copy an example config file (partially addresses #801) Signed-off-by: AnErrupTion --- build.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.zig b/build.zig index d241ebb..c017e6a 100644 --- a/build.zig +++ b/build.zig @@ -175,6 +175,9 @@ fn install_ly(allocator: std.mem.Allocator, patch_map: PatchMap, install_config: try installText(patched_config, config_dir, ly_config_directory, "config.ini", .{}); } + const patched_example_config = try patchFile(allocator, "res/config.ini", patch_map); + try installText(patched_example_config, config_dir, ly_config_directory, "config.ini.example", .{}); + const patched_setup = try patchFile(allocator, "res/setup.sh", patch_map); try installText(patched_setup, config_dir, ly_config_directory, "setup.sh", .{ .mode = 0o755 }); }