mirror of https://github.com/fairyglade/ly.git
Print data directory deletion in build.zig
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
5f2f21620a
commit
2dec2e0b7f
|
@ -273,12 +273,10 @@ fn install_ly(allocator: std.mem.Allocator, install_config: bool) !void {
|
|||
}
|
||||
|
||||
pub fn uninstallall(step: *std.Build.Step, _: ProgressNode) !void {
|
||||
std.fs.cwd().deleteTree(data_directory) catch {
|
||||
std.debug.print("warn: ly data directory not found.", .{});
|
||||
};
|
||||
|
||||
const allocator = step.owner.allocator;
|
||||
|
||||
try deleteTree(allocator, data_directory, "ly data directory not found");
|
||||
|
||||
const exe_path = try std.fs.path.join(allocator, &[_][]const u8{ dest_directory, "/usr/bin/", exe_name });
|
||||
var success = true;
|
||||
std.fs.cwd().deleteFile(exe_path) catch {
|
||||
|
|
Loading…
Reference in New Issue