diff options
| author | ruki <[email protected]> | 2023-04-07 22:51:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-04-07 22:51:12 +0800 |
| commit | 441bfc29cdf72d93202a696b6dcfe25243ddb859 (patch) | |
| tree | 613f5241a53cda41e3a1524e9701db1fd99c5e70 | |
| parent | 383d68f4015b5906db0396adfe4ef3c3875298b2 (diff) | |
fix update url
| -rw-r--r-- | xmake/actions/update/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
