Skip to content

Commit

Permalink
🤖 installer: hide prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberbit committed Dec 29, 2023
1 parent 2de70e5 commit 098cc53
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/telem/bin/install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,19 @@ local showReleaseSelector = function ()

local req = http.get(releaseUrl)
local jres = textutils.unserialiseJSON(req.readAll())

local nonPreReleases = {}
for i,v in ipairs(jres.releases) do
if not v.prerelease then
table.insert(nonPreReleases, v)
end
end

local releaseLabels = {}
local releaseNames = {}
local releaseAssets = {}
local releaseDescriptions = {}
for i,v in ipairs(jres.releases) do
for i,v in ipairs(nonPreReleases) do
local annotation = ''

if v.latest then
Expand Down

0 comments on commit 098cc53

Please sign in to comment.