diff options
| author | ruki <[email protected]> | 2023-11-14 23:20:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-14 23:20:28 +0800 |
| commit | f070b5c9e770199d6fd5de9f696b4894238c6b58 (patch) | |
| tree | b74e1d129be1183e0bb484c874f07d2d4fe84ce2 /tests/plugins/pack/xmake.lua | |
| parent | 661940b67e586377a362dd956b699244aa3165ec (diff) | |
add icon file
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 9 |
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) |
