fix: 更新安装程序中的仓库分支引用和版本显示

将GitHub仓库的默认分支从'primary'更新为'main'以匹配实际分支名称
移除安装程序标题中的版本号'1.0'以简化显示
This commit is contained in:
2025-08-31 17:32:09 +08:00
parent 2d0a469953
commit 15c5b87cb0

View File

@@ -59,7 +59,7 @@ end
print("Run installer step 9")
term.at(1,1).clear()
tu.coloredPrint(colors.yellow,
"LeonOS Installer 1.0\n=======================")
"LeonOS Installer\n=======================")
local ROM_DIR
tu.coloredPrint("Enter installation directory ", colors.yellow, "[",
@@ -87,7 +87,7 @@ end
bullet("Getting repository tree...")
local repodata = dl("https://api.github.com/repos/Leonmmcoset/LeonOS/git/trees/primary?recursive=1")
local repodata = dl("https://api.github.com/repos/Leonmmcoset/LeonOS/git/trees/main?recursive=1")
repodata = json.decode(repodata)