mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-23 14:04:20 +02:00
feat(res): add config.lua
This commit is contained in:
parent
9dac5c8700
commit
5a9cf57560
3 changed files with 460 additions and 5 deletions
|
|
@ -127,7 +127,7 @@ fn installLy(allocator: std.mem.Allocator, io: std.Io, patch_map: PatchMap, inst
|
|||
defer config_dir.close(io);
|
||||
|
||||
if (install_config) {
|
||||
const patched_config = try patchFile(allocator, io, "res/config.ini", patch_map);
|
||||
const patched_config = try patchFile(allocator, io, "res/config.lua", patch_map);
|
||||
defer allocator.free(patched_config);
|
||||
|
||||
try installText(io, patched_config, config_dir, ly_config_directory, "config.ini", .{});
|
||||
|
|
@ -135,10 +135,10 @@ fn installLy(allocator: std.mem.Allocator, io: std.Io, patch_map: PatchMap, inst
|
|||
try installFile(io, "res/startup.sh", config_dir, ly_config_directory, "startup.sh", .{ .permissions = .fromMode(0o755) });
|
||||
}
|
||||
|
||||
const patched_example_config = try patchFile(allocator, io, "res/config.ini", patch_map);
|
||||
const patched_example_config = try patchFile(allocator, io, "res/config.lua", patch_map);
|
||||
defer allocator.free(patched_example_config);
|
||||
|
||||
try installText(io, patched_example_config, config_dir, ly_config_directory, "config.ini.example", .{});
|
||||
try installText(io, patched_example_config, config_dir, ly_config_directory, "config.lua.example", .{});
|
||||
|
||||
const patched_setup = try patchFile(allocator, io, "res/setup.sh", patch_map);
|
||||
defer allocator.free(patched_setup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue