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

@@ -37,6 +37,7 @@ if args[1] == "run" then
if not _G.colors then _G.colors = require("colors") end
if not _G.textutils then _G.textutils = require("textutils") end
if not _G.shell then _G.shell = require("shell") end
if not _G.http then _G.http = require("http") end
-- 执行下载的代码
local func, err = load(data, "=<wget-run>", "t", _G)