|
|
@ -11,6 +11,10 @@ function is_supported(instance, plat, arch, opt) |
|
|
|
|
|
|
|
|
|
|
|
local script = instance:get(instance:is_fetchonly() and "fetch" or "install") |
|
|
|
local script = instance:get(instance:is_fetchonly() and "fetch" or "install") |
|
|
|
if not select_script(script, {plat = plat, arch = arch}) then |
|
|
|
if not select_script(script, {plat = plat, arch = arch}) then |
|
|
|
|
|
|
|
if opt.native and select_script(script, { |
|
|
|
|
|
|
|
plat = plat, arch = arch, subhost = plat, subarch = arch}) then |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
end |
|
|
|
return false |
|
|
|
return false |
|
|
|
end |
|
|
|
end |
|
|
|
return true |
|
|
|
return true |
|
|
@ -29,6 +33,7 @@ end |
|
|
|
|
|
|
|
|
|
|
|
-- the main entry |
|
|
|
-- the main entry |
|
|
|
function main(opt) |
|
|
|
function main(opt) |
|
|
|
|
|
|
|
opt = opt or {} |
|
|
|
local packages = {} |
|
|
|
local packages = {} |
|
|
|
for _, packagedir in ipairs(os.dirs(path.join("packages", "*", "*"))) do |
|
|
|
for _, packagedir in ipairs(os.dirs(path.join("packages", "*", "*"))) do |
|
|
|
local packagename = path.filename(packagedir) |
|
|
|
local packagename = path.filename(packagedir) |
|
|
|