🔧 迁移到 git.garfieldho.me/moon-source
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
e5a9b28e6d
commit
4b9e515db4
4 files changed
+11
-11
No files matched your search
@@ -7,7 +7,7 @@ local Json = require("support.json_stub")
|
||||
|
||||
local PKG = "moonsource_jjwxc"
|
||||
local DIR = "moonsource-jjwxc.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)
|
||||
|
||||
Reference in new issue
Block a user