summaryrefslogtreecommitdiff
path: root/tests/plugins/pack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-14 23:20:28 +0800
committerruki <[email protected]>2023-11-14 23:20:28 +0800
commitf070b5c9e770199d6fd5de9f696b4894238c6b58 (patch)
treeb74e1d129be1183e0bb484c874f07d2d4fe84ce2 /tests/plugins/pack/xmake.lua
parent661940b67e586377a362dd956b699244aa3165ec (diff)
add icon file
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 46517107b..3311a0965 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -12,14 +12,15 @@ xpack("test")
set_description("hello")
add_targets("test")
set_basename("test-$(plat)-$(arch)-v$(version)")
- add_installfiles("assets/*.png")
- set_installdir("assets")
+ add_installfiles("src/assets/*.png")
+ set_installdir("resources")
+ set_iconfile("src/assets/xmake.ico")
on_installcmd(function (package, batchcmds)
batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"})
batchcmds:mkdir("stub")
end)
on_uninstallcmd(function (package, batchcmds)
- batchcmds:rm("resources")
- batchcmds:rm("stub")
+ batchcmds:rmdir("resources")
+ batchcmds:rmdir("stub")
end)