diff options
| -rw-r--r-- | xmake/actions/update/main.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 4bcc334be..6981d2231 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -251,10 +251,12 @@ function main() end -- cannot support to update dev/master on windows - if is_host("windows") and not version:find('.', 1, true) then - raise("not support to update %s on windows!", version) - else - mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", version, version)} + 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)} + else + raise("not support to update %s on windows!", version) + end end -- trace |
