feat: 添加官方的一些包工具脚本

This commit is contained in:
2025-12-20 16:44:05 +08:00
parent 91a587380d
commit aa54adf108
10 changed files with 1301 additions and 1 deletions

14
scripts/list.lua Normal file
View File

@@ -0,0 +1,14 @@
import("packages")
function main(...)
for plat, pkgs in pairs(packages()) do
cprint("${magenta}%s${clear}:", plat)
for _, pkg in ipairs(pkgs) do
if pkg.generic then
cprint(" ${yellow}->${clear} %s", pkg.name)
else
cprint(" ${yellow}->${clear} %s (%s)", pkg.name, table.concat(pkg.archs, ", "))
end
end
end
end