summaryrefslogtreecommitdiff
path: root/tests/plugins/pack/xmake.lua
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 /tests/plugins/pack/xmake.lua
parent14f1ed5587ebe19a644f4832c059ff4ec830f6df (diff)
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", [[