diff options
| author | ruki <[email protected]> | 2023-11-22 11:21:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-22 11:21:34 +0800 |
| commit | 3cf88c4347b0605396b3d5c75f0b34a1c67128ab (patch) | |
| tree | a5b4c18625db8cdf4b27acf4a26e42b73cf8c6dc /xmake/plugins/pack/main.lua | |
| parent | d3a27747a757200dc6d0454469a18e9469219f59 (diff) | |
| parent | 93101340da3886b608aefcacba66b20c6142be91 (diff) | |
Merge pull request #4406 from xmake-io/xpack
Support xpack components
Diffstat (limited to 'xmake/plugins/pack/main.lua')
| -rw-r--r-- | xmake/plugins/pack/main.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xmake/plugins/pack/main.lua b/xmake/plugins/pack/main.lua index 76cc77912..3f145cf86 100644 --- a/xmake/plugins/pack/main.lua +++ b/xmake/plugins/pack/main.lua @@ -27,6 +27,12 @@ import("actions.build.main", {rootdir = os.programdir(), alias = "build_action"} import("xpack") function _load_package(package) + + -- ensure build and output directories + os.tryrm(package:buildir()) + os.mkdir(package:outputdir()) + + -- load it local script = package:script("load") if script then script(package) @@ -39,10 +45,6 @@ end function _pack_package(package) - -- ensure build and output directories - os.tryrm(package:buildir()) - os.mkdir(package:outputdir()) - -- get need formats local formats_need = option.get("formats") if formats_need then |
