diff options
| author | ruki <[email protected]> | 2023-11-14 23:55:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-14 23:55:43 +0800 |
| commit | 6d88e548f3f1ad6dd730ee71bbacc940e96861c5 (patch) | |
| tree | 9ee1bb3da9208d698dcaf0140cd9eda16fc85286 /tests/plugins | |
| parent | 43ce5f9a3ae10403cfc67ad4ce38bf52dff13629 (diff) | |
improve test
Diffstat (limited to 'tests/plugins')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index fc73ec247..7111f13da 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -14,11 +14,11 @@ xpack("test") set_basename("test-$(plat)-$(arch)-v$(version)") add_installfiles("src/(assets/*.png)", {prefixdir = "images"}) set_iconfile("src/assets/xmake.ico") - on_installcmd(function (package, batchcmds) + after_installcmd(function (package, batchcmds) batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"}) batchcmds:mkdir("stub") end) - on_uninstallcmd(function (package, batchcmds) + after_uninstallcmd(function (package, batchcmds) batchcmds:rmdir("resources") batchcmds:rmdir("stub") end) |
