summaryrefslogtreecommitdiff
path: root/xmake/actions/update/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-22 23:01:29 +0800
committerruki <[email protected]>2022-12-22 23:01:29 +0800
commit438a728a323fa73bc1067c1b6df5daa0654384df (patch)
treeacce07357c7b6e6234eddcef0b2de35d9ca6e279 /xmake/actions/update/main.lua
parent2080455f5e38f96c43a036bbbe0515b3a0da5bad (diff)
improve get2.sh and update
Diffstat (limited to 'xmake/actions/update/main.lua')
-rw-r--r--xmake/actions/update/main.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua
index bc4310290..79708904d 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -209,8 +209,11 @@ function _install(sourcedir)
raise("the installer(%s) not found!", win_installer_name)
end
else
- os.vrun("make build")
- process.openv("./scripts/get.sh", {"__local__", "__install_only__"}, {stdout = os.tmpfile(), stderr = os.tmpfile(), detach = true}):close()
+ if os.isfile("./configure") then
+ os.vrun("./configure")
+ end
+ os.vrun("make")
+ process.openv("./scripts/get2.sh", {"__local__", "__install_only__"}, {stdout = os.tmpfile(), stderr = os.tmpfile(), detach = true}):close()
end
return true
end,