2024-11-15 02:35:12 -05:00
|
|
|
project_name: pcgamedb
|
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go install github.com/swaggo/swag/cmd/swag@latest
|
|
|
|
- swag init
|
|
|
|
builds:
|
|
|
|
- env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
- linux
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- arm
|
|
|
|
- "386"
|
|
|
|
ldflags:
|
2024-11-20 06:09:04 -05:00
|
|
|
- -s -w -X pcgamedb/constant.Version={{ .Version }}
|
2024-11-15 02:35:12 -05:00
|
|
|
flags:
|
|
|
|
- -trimpath
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- format: zip
|
|
|
|
goos: windows
|
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
release:
|
|
|
|
draft: true
|
|
|
|
upx:
|
|
|
|
- enabled: true
|
|
|
|
compress: best
|