Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from 1715173329/cgo
Browse files Browse the repository at this point in the history
feat: disable CGO for goreleaser
  • Loading branch information
LinkLeong authored Oct 24, 2021
2 parents a76b32d + a427929 commit eecdc13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project_name: webdav
# Make sure to check the documentation at https://goreleaser.com
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func init() {
cache.Init()
}

var Version = "v1.0.3"
var Version = "v1.0.12"

type Task struct {
Id string `json:"id"`
Expand All @@ -49,7 +49,7 @@ func main() {
flag.Parse()

if *versin {
fmt.Println("v1.0.9")
fmt.Println(Version)
return
}
if len(*refreshToken) == 0 || len(os.Args) < 3 || os.Args[1] != "-rt" {
Expand Down

0 comments on commit eecdc13

Please sign in to comment.