From 413df78f51ebfb292929fd7874427c0c090fd815 Mon Sep 17 00:00:00 2001 From: ayflying Date: Mon, 10 Nov 2025 18:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8A=A0=E9=80=9F=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- go.sum | 4 ++-- internal/boot/boot.go | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index c728c47..d2bdd1d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.24.8 toolchain go1.24.9 require ( - github.com/ayflying/update-github-release v0.0.5 + github.com/ayflying/update-github-release v0.0.6 github.com/dop251/goja v0.0.0-20250630131328-58d95d85e994 github.com/getlantern/systray v1.2.2 github.com/gogf/gf/v2 v2.9.4 diff --git a/go.sum b/go.sum index 562002b..21b8e6f 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,8 @@ github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2 github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= -github.com/ayflying/update-github-release v0.0.5 h1:5iAiIzAu5TQjzsPnFPbCqPtwGacDHNDiTGMthBmotYE= -github.com/ayflying/update-github-release v0.0.5/go.mod h1:9ctXuagiEKABWLaS4ocRCUcnN77jdYm7zir7NQ+rIeM= +github.com/ayflying/update-github-release v0.0.6 h1:lEuy4xkMepwAfWfwI6HgfOdxSfp9uY4odzcDlHlxbtQ= +github.com/ayflying/update-github-release v0.0.6/go.mod h1:9ctXuagiEKABWLaS4ocRCUcnN77jdYm7zir7NQ+rIeM= github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/internal/boot/boot.go b/internal/boot/boot.go index e0c0580..98b8fa3 100644 --- a/internal/boot/boot.go +++ b/internal/boot/boot.go @@ -13,7 +13,9 @@ func Boot() { getDev, _ := g.Cfg().GetWithEnv(gctx.New(), "dev") if !getDev.Bool() { - var update = updateGithub.New("https://api.github.com/repos/ayflying/p2p/releases/latest") + url := "https://api.github.com/repos/ayflying/p2p/releases/latest" + url = "https://gh-proxy.com/" + url + var update = updateGithub.New(url) // 每天0点检查更新 gcron.Add(gctx.New(), "0 0 0 * * *", func(ctx context.Context) { err := update.CheckUpdate(true)