feat(包管理器): 实现LeonOS包管理系统基础功能

添加包管理器核心程序(pkg.lua)及相关支持文件
- 实现包安装、更新、移除、列表、搜索等功能
- 添加包元数据结构和本地存储管理
- 包含示例包和命令补全支持
- 更新系统版本至0.3.0
This commit is contained in:
2025-09-01 22:03:22 +08:00
parent 47b8b5cd2c
commit fb33b53b42
11 changed files with 573 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
_G._HOST = _G._HOST .. " (LeonOS 0.2.7)"
_G._HOST = _G._HOST .. " (LeonOS 0.3.0)"
local fs = rawget(_G, "fs")
_G._RC_ROM_DIR = _RC_ROM_DIR or (...) and fs.exists("/leonos") and "/leonos" or "/rom"
@@ -31,8 +31,8 @@ local rc = {
_NAME = "LeonOS",
_VERSION = {
major = 0,
minor = 2,
patch = 7
minor = 3,
patch = 0
},
queueEvent = pull(os, "queueEvent"),
startTimer = pull(os, "startTimer"),