diff options
| author | ruki <[email protected]> | 2023-11-22 22:49:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-22 22:49:22 +0800 |
| commit | 93101340da3886b608aefcacba66b20c6142be91 (patch) | |
| tree | 07258b3c6d8945d9e83f81eda16620c0991c6984 | |
| parent | b3945b966dac469ca213d1d00547697e7da4e7cc (diff) | |
improve archive xpack
| -rw-r--r-- | xmake/plugins/pack/archive.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/plugins/pack/archive.lua b/xmake/plugins/pack/archive.lua index b48cdb7ed..818404345 100644 --- a/xmake/plugins/pack/archive.lua +++ b/xmake/plugins/pack/archive.lua @@ -28,6 +28,11 @@ function _pack_archive(package) -- do install batchcmds.get_installcmds(package):runcmds() + for _, component in table.orderpairs(package:components()) do + if component:get("default") ~= false then + batchcmds.get_installcmds(component):runcmds() + end + end -- archive install files local rootdir = package:rootdir() |
