summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-17 22:40:22 +0800
committerruki <[email protected]>2023-11-17 22:40:22 +0800
commit03671d0941bf93a5a66eff081d8b50c8f43a532a (patch)
tree7cc774b1af1d317751a39d1ff9833f1cfd048395 /core/src
parent02c004d42d70979f3ca983dd960291761800e2a6 (diff)
improve to remove dirs
Diffstat (limited to 'core/src')
-rw-r--r--core/src/demo/xmake.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index 02466b31f..72892693d 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -68,3 +68,21 @@ target("demo")
add_installfiles("$(projectdir)/../scripts/xrepo.sh", {prefixdir = "bin", filename = "xrepo"})
end
+ before_installcmd(function (target, batchcmds, opt)
+ if target:is_plat("windows") then
+ batchcmds:rmdir("actions")
+ batchcmds:rmdir("core")
+ batchcmds:rmdir("includes")
+ batchcmds:rmdir("languages")
+ batchcmds:rmdir("modules")
+ batchcmds:rmdir("platforms")
+ batchcmds:rmdir("plugins")
+ batchcmds:rmdir("repository")
+ batchcmds:rmdir("rules")
+ batchcmds:rmdir("templates")
+ batchcmds:rmdir("scripts")
+ batchcmds:rmdir("themes")
+ batchcmds:rmdir("toolchains")
+ end
+ end)
+