summaryrefslogtreecommitdiff
path: root/tests/plugins/pack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-17 21:53:04 +0800
committerGitHub <[email protected]>2023-11-17 21:53:04 +0800
commit4ec6682dea22ec5a2e4b818700288e625f761d52 (patch)
tree40e3e618ca22ae4e838319d458285698ce7528ee /tests/plugins/pack/xmake.lua
parent14f1ed5587ebe19a644f4832c059ff4ec830f6df (diff)
parent151b4ba88313652627da6f6747ed11bca6edc86c (diff)
Merge pull request #4396 from xmake-io/xpack
improve installdir for xpack
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
-rw-r--r--tests/plugins/pack/xmake.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua
index 2828524f2..d10af4d54 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -28,13 +28,14 @@ xpack("test")
set_iconfile("src/assets/xmake.ico")
after_installcmd(function (package, batchcmds)
- batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"})
- batchcmds:mkdir("stub")
+ batchcmds:mkdir(package:installdir("resources"))
+ batchcmds:cp("src/assets/*.txt", package:installdir("resources"), {rootdir = "src"})
+ batchcmds:mkdir(package:installdir("stub"))
end)
after_uninstallcmd(function (package, batchcmds)
- batchcmds:rmdir("resources")
- batchcmds:rmdir("stub")
+ batchcmds:rmdir(package:installdir("resources"))
+ batchcmds:rmdir(package:installdir("stub"))
end)
add_nsis_installcmds("Enable Long Path", [[