summaryrefslogtreecommitdiff
path: root/xmake/actions/update/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-12-21 00:47:45 +0800
committerruki <[email protected]>2018-12-20 22:46:33 +0800
commitc727b7173ddd2a9f617275d5876e73dddb880543 (patch)
tree3099dac04e5dac7775b730384c9a7a6719919eae /xmake/actions/update/main.lua
parentf1065f8b97b0521a57782eca4e9758929aebcd70 (diff)
add some package mirrors
Diffstat (limited to 'xmake/actions/update/main.lua')
-rw-r--r--xmake/actions/update/main.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua
index 98c3f570d..a359c2e0c 100644
--- a/xmake/actions/update/main.lua
+++ b/xmake/actions/update/main.lua
@@ -256,15 +256,23 @@ function main()
-- get urls on windows
if is_host("windows") then
if version:find('.', 1, true) then
- mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", version, version)}
+ mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", version, version),
+ format("https://qcloud.coding.net/u/waruqi/p/xmake-releases/git/raw/master/xmake-%s.exe", version),
+ format("https://gitlab.com/xmake-mirror/xmake-releases/raw/master/xmake-%s.exe", version)}
else
local lastest = semver.select("lastest", tags or {}, tags or {}, {})
if lastest then
- mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", lastest, version)}
+ mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", lastest, version),
+ format("https://qcloud.coding.net/u/waruqi/p/xmake-releases/git/raw/master/xmake-%s.exe", version),
+ format("https://gitlab.com/xmake-mirror/xmake-releases/raw/master/xmake-%s.exe", version)}
else
raise("not support to update %s on windows!", version)
end
end
+
+ -- re-sort mainurls
+ fasturl.add(mainurls)
+ mainurls = fasturl.sort(mainurls)
end
-- trace