summaryrefslogtreecommitdiff
path: root/tests/plugins/pack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-24 22:37:42 +0800
committerruki <[email protected]>2023-11-24 22:37:42 +0800
commitf99a2826a56540608b01075a072eba11f4da6fc5 (patch)
treee2ffe8cacdbe307074f3793e18b04c3320d196b4 /tests/plugins/pack/xmake.lua
parent19b444e7d0f05b1efa7a52b9d8c001be7cba14c2 (diff)
improve test
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
-rw-r--r--tests/plugins/pack/xmake.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua
index e8d2cdd53..3000c9f28 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -39,9 +39,12 @@ xpack("test")
end)
after_installcmd(function (package, batchcmds)
- batchcmds:mkdir(package:installdir("resources"))
- batchcmds:cp("src/assets/*.txt", package:installdir("resources"), {rootdir = "src"})
- batchcmds:mkdir(package:installdir("stub"))
+ if package:from_source() then
+ else
+ batchcmds:mkdir(package:installdir("resources"))
+ batchcmds:cp("src/assets/*.txt", package:installdir("resources"), {rootdir = "src"})
+ batchcmds:mkdir(package:installdir("stub"))
+ end
end)
after_uninstallcmd(function (package, batchcmds)