feat(updater): 重写并增强更新器功能

重构更新器代码,增加错误处理和进度显示
添加版本检查、JSON库加载和文件下载功能
改进用户界面和失败安全机制
This commit is contained in:
2025-09-07 20:38:26 +08:00
parent 8745f2ee63
commit 3a4d5d449a
4 changed files with 338 additions and 171 deletions

View File

@@ -1,4 +1,4 @@
_G._HOST = _G._HOST .. " (LeonOS 1.0.0)"
_G._HOST = _G._HOST .. " (LeonOS 1.0.1)"
local fs = rawget(_G, "fs")
_G._RC_ROM_DIR = _RC_ROM_DIR or (...) and fs.exists("/leonos") and "/leonos" or "/rom"
@@ -32,7 +32,7 @@ local rc = {
_VERSION = {
major = 1,
minor = 0,
patch = 0
patch = 1
},
queueEvent = pull(os, "queueEvent"),
startTimer = pull(os, "startTimer"),