diff options
| author | ruki <[email protected]> | 2023-11-14 23:28:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-14 23:28:30 +0800 |
| commit | aa38c3aa417f60f1015446ac4254cae3fa1e16be (patch) | |
| tree | 21cdd735f2417034635871a913c65cba83dc2c8f /tests/plugins | |
| parent | 2a70793d5afbca2417bc65601f3a1785a1328d76 (diff) | |
improve installfiles
Diffstat (limited to 'tests/plugins')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index 3311a0965..fc73ec247 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -12,8 +12,7 @@ xpack("test") set_description("hello") add_targets("test") set_basename("test-$(plat)-$(arch)-v$(version)") - add_installfiles("src/assets/*.png") - set_installdir("resources") + add_installfiles("src/(assets/*.png)", {prefixdir = "images"}) set_iconfile("src/assets/xmake.ico") on_installcmd(function (package, batchcmds) batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"}) |
