mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
Merge branch 'master' into dev
This commit is contained in:
commit
6fc3f0b649
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.17'
|
go-version: '1.18'
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
|
@ -3,6 +3,9 @@ env:
|
|||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
release:
|
||||||
|
draft: true
|
||||||
|
discussion_category_name: General
|
||||||
builds:
|
builds:
|
||||||
- id: nowin
|
- id: nowin
|
||||||
env:
|
env:
|
||||||
|
@ -81,7 +81,7 @@ func Main() {
|
|||||||
|
|
||||||
mkCacheDir := func(path string, _type string) {
|
mkCacheDir := func(path string, _type string) {
|
||||||
if !global.PathExists(path) {
|
if !global.PathExists(path) {
|
||||||
if err := os.MkdirAll(path, 0o644); err != nil {
|
if err := os.MkdirAll(path, 0o755); err != nil {
|
||||||
log.Fatalf("创建%s缓存文件夹失败: %v", _type, err)
|
log.Fatalf("创建%s缓存文件夹失败: %v", _type, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user