summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index f8ce349d9..e280d0cec 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -159,6 +159,12 @@ function main(package)
-- clean install directory first
os.tryrm(package:installdir())
+ -- download package resources
+ download_resources(package)
+
+ -- patch source codes of package
+ patch_sources(package)
+
-- enter the environments of all package dependencies
for _, dep in ipairs(package:orderdeps()) do
dep:envs_enter()
@@ -167,12 +173,6 @@ function main(package)
-- check package toolchains
_check_package_toolchains(package)
- -- download package resources
- download_resources(package)
-
- -- patch source codes of package
- patch_sources(package)
-
-- do install
for i = 1, 3 do
local script = scripts[i]