improve packages

pull/5497/head
ruki 2 months ago
parent 5bd046ad43
commit bbe5219706
  1. 5
      scripts/packages.lua

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

Loading…
Cancel
Save