refactor(installer): 更新安装器版本至0.3.6 Beta 5

重构示例包文件结构,合并程序文件并移除补全功能
在app.lua中添加shell和applist模块依赖
This commit is contained in:
2025-09-02 12:46:34 +08:00
parent c927b19cb2
commit f3313c3e7f
5 changed files with 5 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
-- Example Package Program
local colors = require('colors')
local term = require('term')
function drawTopBar()
local w, h = term.getSize()
term.setBackgroundColor(colors.cyan)
term.setTextColor(colors.white)
term.setCursorPos(1, 1)
term.clearLine()
local title = "=== Example Package v1.0.0 ==="
local pos = math.floor((w - #title) / 2) + 1
term.setCursorPos(pos, 1)
term.write(title)
term.setBackgroundColor(colors.black)
term.setTextColor(colors.white)
term.setCursorPos(1, 3)
end
drawTopBar()
print("\nThis is an example package that demonstrates the features of LeonOS package manager.")
print("\nUsage:")
print(" pkg install example-pkg - Install this package")
print(" pkg remove example-pkg - Uninstall this package")
print(" pkg list - List installed packages")