diff options
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 9 |
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) |
