diff options
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 1 | ||||
| -rw-r--r-- | xmake/plugins/pack/runself/main.lua | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index 3000c9f28..5f4be60a3 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -40,6 +40,7 @@ xpack("test") after_installcmd(function (package, batchcmds) if package:from_source() then + batchcmds:runv("echo", {"hello"}) else batchcmds:mkdir(package:installdir("resources")) batchcmds:cp("src/assets/*.txt", package:installdir("resources"), {rootdir = "src"}) diff --git a/xmake/plugins/pack/runself/main.lua b/xmake/plugins/pack/runself/main.lua index 8f5774f61..8f25c3e80 100644 --- a/xmake/plugins/pack/runself/main.lua +++ b/xmake/plugins/pack/runself/main.lua @@ -92,6 +92,8 @@ function _write_installcmd(package, scriptfile, cmd) elseif kind == "mkdir" then local dir = cmd.dir scriptfile:print("mkdir -p \"%s\"", dir) + elseif cmd.program then + scriptfile:print("%s", os.args(table.join(cmd.program, cmd.argv))) end end |
