Update install.lua
release fix
This commit is contained in:
@@ -149,14 +149,14 @@ function installer.getBasaltData()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function installer.getRelease(version)
|
function installer.getRelease(version)
|
||||||
local v = installer.getBasaltData().versions[version]
|
--local v = installer.getBasaltData().versions[version]
|
||||||
if(v~=nil)then
|
--if(v~=nil)then
|
||||||
printStatus("Downloading basalt "..version)
|
printStatus("Downloading basalt "..version)
|
||||||
local content = http.get("https://basalt.madefor.cc/versions/"..v, {Authorization = _G._GIT_API_KEY and "token ".._G._GIT_API_KEY})
|
local content = http.get("https://basalt.madefor.cc/versions/"..version, {Authorization = _G._GIT_API_KEY and "token ".._G._GIT_API_KEY})
|
||||||
if(content~=nil)then
|
if(content~=nil)then
|
||||||
return content.readAll()
|
return content.readAll()
|
||||||
end
|
end
|
||||||
end
|
--end
|
||||||
end
|
end
|
||||||
|
|
||||||
function installer.downloadRelease(file, version)
|
function installer.downloadRelease(file, version)
|
||||||
|
|||||||
Reference in New Issue
Block a user