diff options
| author | ruki <[email protected]> | 2021-03-06 00:26:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-06 00:26:49 +0800 |
| commit | f3f916ee0494069c42b7ad604d5ff1e968f156d8 (patch) | |
| tree | 8122aa2e11df63985d90d63ed098e7a400f374e6 | |
| parent | ecb7b50da9471f2ebc5d44d01c72e7860776e2c9 (diff) | |
improve install
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 12 |
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] |
