Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/foojay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ local URL =
foojay.fetchtJdkList= function (distribution, version)

local os = RUNTIME.osType
local arch = RUNTIME.archType
if os == "darwin" then
os = "macos"
end

local archive_type = "tar.gz"
if os == "windows" then
archive_type = "zip"
if (arch == "amd64") then
arch = "x64"
end
end

local lib_c_type = ""
if os == "linux" then
lib_c_type = "glibc"
end

local reqUrl = URL:format(version, distribution, RUNTIME.archType, archive_type, os, lib_c_type)
local reqUrl = URL:format(version, distribution, arch, archive_type, os, lib_c_type)

local resp, err = http.get({
url = reqUrl
Expand Down