🔧 迁移到 git.garfieldho.me/moon-source

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
GarfieldandCopilot committed 2026-11-18 21:44:39 +08:00
1 parent 7aa75b274f
commit 4c52ecc75c
4 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ local Json = require("support.json_stub")
local PKG = "moonsource_shuqi"
local DIR = "moonsource-shuqi.koplugin"
local REPO = "GarfieldMoon/" .. DIR:gsub("%.koplugin$", "")
local REPO = "moon-source/" .. DIR:gsub("%.koplugin$", "")
local cfg = {}
package.preload["utils.settings"] = function()
@@ -18,7 +18,7 @@ package.preload["utils.text"] = function()
end
package.preload["http.timeout"] = function() return { net = function() return 5 end } end
local BASE = "https://codeberg.org/" .. REPO .. "/releases/download/v1.2.3/"
local BASE = "https://git.garfieldho.me/" .. REPO .. "/releases/download/v1.2.3/"
local zip = DIR .. "-1.2.3.zip"
local other = "moonsource-other.koplugin-1.2.3.zip"
local release = {
@@ -54,7 +54,7 @@ Assert.is_true(Update.newer("0.0.1", "0.0.0-dev"))
local got, err
Update.check(function(r, e) got, err = r, e end)
Assert.is_nil(err)
Assert.eq(requested[1], "https://codeberg.org/api/v1/repos/" .. REPO .. "/releases/latest")
Assert.eq(requested[1], "https://git.garfieldho.me/api/v1/repos/" .. REPO .. "/releases/latest")
Assert.eq(got.version, "1.2.3")
Assert.eq(got.notes, "更新说明")
Assert.is_true(got.available)