diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54b6473..d8f9096 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,15 +27,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Checkout Dist - uses: actions/checkout@v2 - with: - repository: 'gocq/dist' - ref: master - ssh-key: ${{ secrets.SSH_KEY }} - path: upstream/dist + #- name: Checkout Dist + # uses: actions/checkout@v2 + # with: + # repository: 'gocq/dist' + # ref: master + # ssh-key: ${{ secrets.SSH_KEY }} + # path: upstream/dist - - name: Update Dist - run: | - chmod +x scripts/upload_dist.sh - ./scripts/upload_dist.sh + #- name: Update Dist + # run: | + # chmod +x scripts/upload_dist.sh + # ./scripts/upload_dist.sh diff --git a/main.go b/main.go index 05fb4c9..4e0ed2c 100644 --- a/main.go +++ b/main.go @@ -514,14 +514,19 @@ func selfUpdate(imageURL string) { } else { log.Info("正在更新,请稍等...") url := fmt.Sprintf( - "%v/Mrs4s/go-cqhttp/releases/download/%v/go-cqhttp-%v-%v-%v", + "%v/Mrs4s/go-cqhttp/releases/download/%v/go-cqhttp_%v_%v", func() string { if imageURL != "" { return imageURL } return "https://github.com" }(), - version, version, runtime.GOOS, runtime.GOARCH, + version, runtime.GOOS, func() string { + if runtime.GOARCH == "arm" { + return "armv7" + } + return runtime.GOARCH + }(), ) if runtime.GOOS == "windows" { url += ".zip"