From 441bfc29cdf72d93202a696b6dcfe25243ddb859 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 7 Apr 2023 22:51:12 +0800 Subject: fix update url --- xmake/actions/update/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index ac0cda50e..2f665868a 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -433,7 +433,7 @@ function main() if version:find('.', 1, true) then mainurls = {format("https://github.com/xmake-io/xmake/releases/download/%s/xmake-%s.%s.exe", version, version, winarch), format("https://fastly.jsdelivr.net/gh/xmake-mirror/xmake-releases@%s/xmake-%s.%s.exe.zip", version, version, winarch), - format("https://gitlab.com/xmake-mirror/xmake-releases/-/raw/%s/xmake-%s.%s.exe.zip", version, version, winarch)} + format("https://gitlab.com/xmake-mirror/xmake-releases/-/raw/%s/xmake-%s.%s.exe.zip", (version:gsub("^v", "")), version, winarch)} else -- regard as a git branch, fetch from ci local tags = fetchinfo.tags -- cgit v1.3.1