fix: 更新仓库地址及版本号至1.0.3

将仓库地址从Leonmmcoset/LeonOS更新为CCLeonOS/LeonOS,并升级系统版本号至1.0.3。同时更新了安装器版本号为1.0.3 Beta 1。
This commit is contained in:
2025-09-09 20:03:32 +08:00
parent e60b50b9e1
commit 429b98ab00
4 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# LeonOS # LeonOS
Use Use
```shell ```shell
wget run https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/installer.lua wget run https://gh.catmak.name/https://raw.githubusercontent.com/CCLeonOS/LeonOS/refs/heads/main/installer.lua
``` ```
to install the LeonOS system. to install the LeonOS system.

View File

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

View File

@@ -40,7 +40,7 @@ textutils.coloredPrint(colors.yellow,
print("Checking for update...") print("Checking for update...")
local http = require("http") local http = require("http")
local base = "https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/" local base = "https://gh.catmak.name/https://raw.githubusercontent.com/CCLeonOS/LeonOS/refs/heads/main/"
local Bhandle, Berr = http.get(base .. "data/computercraft/lua/bios.lua") local Bhandle, Berr = http.get(base .. "data/computercraft/lua/bios.lua")
if not Bhandle then if not Bhandle then

View File

@@ -1,5 +1,5 @@
-- LeonOS installer -- LeonOS installer
local INSTALLER_VERSION = "1.0.2" local INSTALLER_VERSION = "1.0.3 Beta 1"
local DEFAULT_ROM_DIR = "/leonos" local DEFAULT_ROM_DIR = "/leonos"
print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...") print("Start loading LeonOS installer ("..INSTALLER_VERSION..")...")
@@ -47,7 +47,7 @@ print("[Installer] Loading done.")
print("[Installer] Loading module 7") print("[Installer] Loading module 7")
local function rcload(f) local function rcload(f)
return ghload( return ghload(
"Leonmmcoset/LeonOS/refs/heads/main/data/computercraft/lua/rom/"..f, f) "CCLeonOS/LeonOS/refs/heads/main/data/computercraft/lua/rom/"..f, f)
end end
print("[Installer] Loading done.") print("[Installer] Loading done.")
print("[Installer] Loading module 8") print("[Installer] Loading module 8")
@@ -123,7 +123,7 @@ end
bullet("Getting repository tree...") bullet("Getting repository tree...")
local repodata = dl("https://gh.catmak.name/https://api.github.com/repos/Leonmmcoset/LeonOS/git/trees/main?recursive=1") local repodata = dl("https://gh.catmak.name/https://api.github.com/repos/CCLeonOS/LeonOS/git/trees/main?recursive=1")
repodata = json.decode(repodata) repodata = json.decode(repodata)
@@ -179,7 +179,7 @@ for i=1, #to_dl, 1 do
local v = to_dl[i] local v = to_dl[i]
if v.type == "blob" then if v.type == "blob" then
parallels[#parallels+1] = function() parallels[#parallels+1] = function()
local data = dl("https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/data/computercraft/lua/"..v.path) local data = dl("https://gh.catmak.name/https://raw.githubusercontent.com/CCLeonOS/LeonOS/refs/heads/main/data/computercraft/lua/"..v.path)
assert(io.open(v.real_path, "w")):write(data):close() assert(io.open(v.real_path, "w")):write(data):close()
done = done + 1 done = done + 1
progress(pby, done, #to_dl) progress(pby, done, #to_dl)
@@ -197,7 +197,7 @@ bullet("Downloading startup file...")
assert(io.open( assert(io.open(
fs.exists("/startup.lua") and "/unbios-rc.lua" or "/startup.lua", "w")) fs.exists("/startup.lua") and "/unbios-rc.lua" or "/startup.lua", "w"))
:write(dl( :write(dl(
"https://gh.catmak.name/https://raw.githubusercontent.com/Leonmmcoset/LeonOS/refs/heads/main/unbios.lua" "https://gh.catmak.name/https://raw.githubusercontent.com/CCLeonOS/LeonOS/refs/heads/main/unbios.lua"
)):close() )):close()
ok() ok()