Skip to content

Commit

Permalink
Fix macOS 11.0 download
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed Jul 24, 2019
1 parent cce5f52 commit 77e43b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
File renamed without changes.
11 changes: 8 additions & 3 deletions src/scripts/macos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ function s.script(project)
script:createLoveFile()
fs.change_dir(project.releaseDirectory)

local prefix = "love-"..tostring(project.loveVersion).."-macos"
local bin
if project.loveVersion >= ver'11.0' then
local prefix, bin
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"
elseif project.loveVersion == ver'0.10.0' then
utils.io.err("macOS: No LÖVE 0.10.0 binary available.\n")
os.exit(1)
elseif project.loveVersion >= ver'0.9.0' then
prefix = "love-"..tostring(project.loveVersion).."-macos"
bin = prefix.."x-x64.zip"
else
prefix = "love-"..tostring(project.loveVersion).."-macos"
bin = prefix.."x-ub.zip"
end
local url = "https://bitbucket.org/rude/love/downloads/"..bin
Expand Down

0 comments on commit 77e43b1

Please sign in to comment.