Skip to content

Commit 314478b

Browse files
committed
chore: repleace check update
1 parent 8493f25 commit 314478b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
if $IS_PR ; then echo $PR_PROMPT; fi
4747
export BINARY_NAME="$BINARY_PREFIX$GOOS_$GOARCH$BINARY_SUFFIX"
4848
export CGO_ENABLED=0
49-
export LD_FLAGS="-w -s -X github.com/Mrs4s/go-cqhttp/internal/base.Version=${COMMIT_ID::7}"
49+
export LD_FLAGS="-w -s -X github.com/CodeLaboratory/go-cqhttp/internal/base.Version=${COMMIT_ID::7}"
5050
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" .
5151
- name: Upload artifact
5252
uses: actions/upload-artifact@v2

internal/selfupdate/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func binaryName() string {
6969
}
7070

7171
func checksum(github, version string) []byte {
72-
sumURL := fmt.Sprintf("%v/Mrs4s/go-cqhttp/releases/download/%v/go-cqhttp_checksums.txt", github, version)
72+
sumURL := fmt.Sprintf("%v/CodeLaboratory/go-cqhttp/releases/download/%v/go-cqhttp_checksums.txt", github, version)
7373
sum, err := download.Request{URL: sumURL}.Bytes()
7474
if err != nil {
7575
return nil
@@ -108,7 +108,7 @@ func SelfUpdate(github string) {
108108
logrus.Warnf("获取最新版本失败: %v", err)
109109
wait()
110110
}
111-
url := fmt.Sprintf("%v/Mrs4s/go-cqhttp/releases/download/%v/%v", github, latest, binaryName())
111+
url := fmt.Sprintf("%v/CodeLaboratory/go-cqhttp/releases/download/%v/%v", github, latest, binaryName())
112112
if base.Version == latest {
113113
logrus.Info("当前版本已经是最新版本!")
114114
wait()

0 commit comments

Comments
 (0)