summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-18 00:35:53 +0800
committerruki <[email protected]>2023-11-18 00:35:53 +0800
commit76d63abc88586d3e51179773c1112f1eee76a8e8 (patch)
tree0e5ce02c245fadc920d71d02ed4151ff284121e5 /core/src
parent14f1ed5587ebe19a644f4832c059ff4ec830f6df (diff)
improve installdir for xpack
Diffstat (limited to 'core/src')
-rw-r--r--core/src/demo/xmake.lua27
1 files changed, 14 insertions, 13 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index a45c82693..f519dd88a 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -70,20 +70,21 @@ target("demo")
before_installcmd(function (target, batchcmds, opt)
-- we need to avoid some old files interfering with xmake's module import.
+ local package = opt.package
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")
+ batchcmds:rmdir(package:installdir("actions"))
+ batchcmds:rmdir(package:installdir("core"))
+ batchcmds:rmdir(package:installdir("includes"))
+ batchcmds:rmdir(package:installdir("languages"))
+ batchcmds:rmdir(package:installdir("modules"))
+ batchcmds:rmdir(package:installdir("platforms"))
+ batchcmds:rmdir(package:installdir("plugins"))
+ batchcmds:rmdir(package:installdir("repository"))
+ batchcmds:rmdir(package:installdir("rules"))
+ batchcmds:rmdir(package:installdir("templates"))
+ batchcmds:rmdir(package:installdir("scripts"))
+ batchcmds:rmdir(package:installdir("themes"))
+ batchcmds:rmdir(package:installdir("toolchains"))
end
end)