1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-06-30 11:53:25 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
2f348e9586 fix version 2021-03-26 18:15:48 +08:00
0c7c790386 use goreleaser 2021-03-26 17:33:22 +08:00
4 changed files with 7 additions and 35 deletions

View File

@ -1,4 +1,4 @@
name: release
name: build
on:
push:
@ -9,12 +9,14 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
-
name: Checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- name: Set up Go
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16.2'
@ -26,23 +28,3 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout Dist
uses: actions/checkout@v2
with:
repository: 'wdvxdr1123/dist'
ref: master
ssh-key: ${{ secrets.SSH_KEY }}
path: upstream/dist
- name: Update Dist
run: |
cp dist/*.tar.gz upstream/dist/
cp dist/*.zip upstream/dist/
cd upstream/dist
git config --local user.name 'Github Actions'
git config --local user.email 'github-actions@users.noreply.github.com'
git add --all
git commit -m "update to ${GITHUB_REF#"refs/tags/"}"
git push

View File

@ -16,8 +16,6 @@ builds:
- amd64
- arm
- arm64
goarm:
- 7
ignore:
- goos: darwin
goarch: arm
@ -50,11 +48,3 @@ archives:
format_overrides:
- goos: windows
format: zip
nfpms:
- license: AGPL 3.0
homepage: https://go-cqhttp.org
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
formats:
- deb
- rpm

View File

@ -444,7 +444,7 @@ func OldPasswordDecrypt(encryptedPassword string, key []byte) string {
func checkUpdate() {
log.Infof("正在检查更新.")
if coolq.Version == "(devel)" {
if coolq.Version == "unknown" {
log.Warnf("检查更新失败: 使用的 Actions 测试版或自编译版本.")
return
}