Skip to content

Commit

Permalink
improve xpack #4877
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 26, 2024
1 parent bef5a46 commit 1113aa2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xmake/plugins/pack/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down Expand Up @@ -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())
Expand All @@ -128,6 +126,9 @@ function main()
_build_targets()
end

-- load targets
project.load_targets()

-- do pack
_pack_packages()

Expand Down

0 comments on commit 1113aa2

Please sign in to comment.