mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 14:54:01 +03:00
FILE / ScuroNeko/mtg
.goreleaser.yml
Исходный файл и его история в репозитории.
71 lines
1.2 KiB
YAML
71 lines
1.2 KiB
YAML
---
|
|
|
|
version: 2
|
|
|
|
project_name: mtg
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
- go generate ./...
|
|
|
|
builds:
|
|
- binary: '{{ .ProjectName }}'
|
|
goos:
|
|
- darwin
|
|
- freebsd
|
|
- linux
|
|
- netbsd
|
|
- openbsd
|
|
goarch:
|
|
- 386
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- 6
|
|
- 7
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
- -mod=readonly
|
|
ldflags: -s -w -X main.version={{ .Version }}
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: 386
|
|
- goos: freebsd
|
|
goarch: arm64
|
|
- goos: netbsd
|
|
goarch: arm64
|
|
- goos: openbsd
|
|
goarch: arm64
|
|
|
|
archives:
|
|
- name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
|
formats:
|
|
- tar.gz
|
|
wrap_in_directory: true
|
|
format_overrides:
|
|
- goos: windows
|
|
formats:
|
|
- zip
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
- SECURITY.md
|
|
- example.config.toml
|
|
|
|
gomod:
|
|
proxy: true
|
|
|
|
snapshot:
|
|
version_template: '{{ .Version }}'
|
|
|
|
checksum:
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'
|
|
|
|
source:
|
|
enabled: true
|
|
name_template: '{{ .ProjectName }}-sources'
|