diff options
| author | ruki <[email protected]> | 2024-06-14 23:00:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-14 23:00:51 +0800 |
| commit | be13dea48369944fe9e47d40824bff0c62e09977 (patch) | |
| tree | b31e9cf5e70591e400f8ba2a522262ed56768fab /xmake/plugins/pack/batchcmds.lua | |
| parent | 84c21fc27d66fee32d6ab5744c63835505fc0ca1 (diff) | |
improve xmake batchcmd
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
| -rw-r--r-- | xmake/plugins/pack/batchcmds.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua index 3d9229cce..8091134b2 100644 --- a/xmake/plugins/pack/batchcmds.lua +++ b/xmake/plugins/pack/batchcmds.lua @@ -186,13 +186,13 @@ end -- on install source target command function _on_target_installcmd_source(target, batchcmds_, opt) local package = opt.package - batchcmds_:vrunv("xmake", {"install", "-o", path(package:install_rootdir()), target:name()}) + batchcmds_:vrunv("xmake", {"install", "-P", ".", "-y", "-o", path(package:install_rootdir()), target:name()}) end -- on build target command function _on_target_buildcmd(target, batchcmds_, opt) local package = opt.package - batchcmds_:vrunv("xmake", {"build", "-y", target:name()}) + batchcmds_:vrunv("xmake", {"build", "-P", ".", "-y", target:name()}) end -- on install target command |
