Fix macOS 11.0 download

This commit is contained in:
Antonin Décimo
2019-07-24 11:51:48 +02:00
parent cce5f52eaf
commit 77e43b132b
2 changed files with 8 additions and 3 deletions

View File

@@ -26,16 +26,21 @@ function s.script(project)
script:createLoveFile() script:createLoveFile()
fs.change_dir(project.releaseDirectory) fs.change_dir(project.releaseDirectory)
local prefix = "love-"..tostring(project.loveVersion).."-macos" local prefix, bin
local bin if project.loveVersion > ver'11.0' then
if project.loveVersion >= ver'11.0' then prefix = "love-"..tostring(project.loveVersion).."-macos"
bin = prefix..".zip"
elseif project.loveVersion == ver'11.0' then
prefix = "love-"..tostring(project.loveVersion)..".0-macos"
bin = prefix..".zip" bin = prefix..".zip"
elseif project.loveVersion == ver'0.10.0' then elseif project.loveVersion == ver'0.10.0' then
utils.io.err("macOS: No LÖVE 0.10.0 binary available.\n") utils.io.err("macOS: No LÖVE 0.10.0 binary available.\n")
os.exit(1) os.exit(1)
elseif project.loveVersion >= ver'0.9.0' then elseif project.loveVersion >= ver'0.9.0' then
prefix = "love-"..tostring(project.loveVersion).."-macos"
bin = prefix.."x-x64.zip" bin = prefix.."x-x64.zip"
else else
prefix = "love-"..tostring(project.loveVersion).."-macos"
bin = prefix.."x-ub.zip" bin = prefix.."x-ub.zip"
end end
local url = "https://bitbucket.org/rude/love/downloads/"..bin local url = "https://bitbucket.org/rude/love/downloads/"..bin