summaryrefslogtreecommitdiff
path: root/tests/plugins/pack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-14 23:04:06 +0800
committerruki <[email protected]>2023-11-14 23:04:06 +0800
commit661940b67e586377a362dd956b699244aa3165ec (patch)
tree40fb0d6edba05b1848bc364ca7629633f283c8ef /tests/plugins/pack/xmake.lua
parenta6712c961f931d3691e8ef3cf51ff3979610fec9 (diff)
improve some cmds
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
-rw-r--r--tests/plugins/pack/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua
index 666b98c54..46517107b 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -15,11 +15,11 @@ xpack("test")
add_installfiles("assets/*.png")
set_installdir("assets")
on_installcmd(function (package, batchcmds)
- batchcmds:cp("assets/*.txt", "assets")
+ batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"})
batchcmds:mkdir("stub")
end)
on_uninstallcmd(function (package, batchcmds)
- batchcmds:rm("assets")
+ batchcmds:rm("resources")
batchcmds:rm("stub")
end)