feat(自动更新): 添加持久化版本追踪避免重复更新

新增读写本地版本记录文件的工具函数,调整自动更新触发逻辑仅在版本不一致时触发,更新成功后写入版本号;修复更新失败版本号的赋值问题,同时为安装脚本添加标准文件头注释
This commit is contained in:
2026-07-11 00:09:43 +08:00
parent d848f1c438
commit 446a8b0d09
3 changed files with 45 additions and 5 deletions
+8
View File
@@ -1,3 +1,11 @@
--[[
Author: HenryDu8133 813367384@qq.com
Date: 2026-06-28 12:58:42
LastEditors: HenryDu8133 813367384@qq.com
LastEditTime: 2026-07-11 00:02:33
FilePath: \TicketMachine\install_ticketmachine.lua
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--]]
local URL_MACHINE_HTTP = "http://gitea.fse-media.group/Henry_Du/FSE-Ticket.sys/raw/branch/main/ticketmachine.lua"
local URL_UPDATE_MACHINE = "http://gitea.fse-media.group/Henry_Du/FSE-Ticket.sys/raw/branch/main/update_machine.lua"