From c322404f968a936cb03e3489082a3e54888350d5 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 9 Dec 2024 23:56:21 +0800 Subject: [PATCH] update install --- core/src/cli/xmake.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/cli/xmake.lua b/core/src/cli/xmake.lua index e093191a69e..96709daeb29 100644 --- a/core/src/cli/xmake.lua +++ b/core/src/cli/xmake.lua @@ -61,6 +61,12 @@ target("cli") add_installfiles("$(projectdir)/../xmake/(templates/**)") add_installfiles("$(projectdir)/../scripts/xrepo.bat") add_installfiles("$(projectdir)/../scripts/xrepo.ps1") + set_prefixdir("/", {bindir = "/"}) + after_install(function (target) + os.rm(target:libdir()) + os.rm(target:includedir()) + os.cp(path.join(os.programdir(), "winenv"), target:installdir()) + end) else add_installfiles("$(projectdir)/../(xmake/**.lua)", {prefixdir = "share"}) add_installfiles("$(projectdir)/../(xmake/scripts/**)", {prefixdir = "share"})