summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-03-26 18:44:44 +0800
committerGitHub <[email protected]>2024-03-26 18:44:44 +0800
commit45aadcc5974de9b7d40dd2641e7bd335db8fb2e3 (patch)
tree7e8f325d104f52758a6beeafe89736148cb25983
parentbef5a46b62937a48bf7f50170584e7dd648420d5 (diff)
parent1113aa27550a13f0ff18b0485418b5b6f63ccba6 (diff)
Merge pull request #4880 from xmake-io/xpack
improve xpack #4877
-rw-r--r--xmake/plugins/pack/main.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/xmake/plugins/pack/main.lua b/xmake/plugins/pack/main.lua
index c9576774f..d55855143 100644
--- a/xmake/plugins/pack/main.lua
+++ b/xmake/plugins/pack/main.lua
@@ -21,6 +21,7 @@
-- imports
import("core.base.task")
import("core.base.option")
+import("core.project.config")
import("core.project.project")
import("private.service.remote_build.action", {alias = "remote_build_action"})
import("actions.build.main", {rootdir = os.programdir(), alias = "build_action"})
@@ -115,10 +116,7 @@ function main()
project.lock()
-- load config first
- task.run("config", {}, {disable_dump = true})
-
- -- load targets
- project.load_targets()
+ config.load()
-- enter project directory
local oldir = os.cd(project.directory())
@@ -128,6 +126,9 @@ function main()
_build_targets()
end
+ -- load targets
+ project.load_targets()
+
-- do pack
_pack_packages()