Start goreleaser conf

This commit is contained in:
NBTX 2020-06-07 17:57:42 +01:00
parent 5c6e71644f
commit 503af7c30e
3 changed files with 116 additions and 2 deletions

28
.goreleaser.yml Normal file
View file

@ -0,0 +1,28 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
# - go mod download
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

82
dist/config.yaml vendored Normal file
View file

@ -0,0 +1,82 @@
project_name: postwoman-proxy
release:
github:
owner: postwoman-io
name: postwoman-proxy
name_template: '{{.Tag}}'
scoop:
name: postwoman-proxy
commit_author:
name: goreleaserbot
email: goreleaser@carlosbecker.com
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
builds:
- id: postwoman-proxy
goos:
- linux
- darwin
goarch:
- amd64
- "386"
goarm:
- "6"
targets:
- linux_amd64
- linux_386
ignore:
- goos: darwin
goarch: ""
goarm: ""
gomips: ""
dir: .
main: .
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
binary: postwoman-proxy
env:
- CGO_ENABLED=0
lang: go
archives:
- id: default
builds:
- postwoman-proxy
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
replacements:
"386": i386
amd64: x86_64
darwin: Darwin
linux: Linux
windows: Windows
format: tar.gz
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
snapshot:
name_template: '{{ .Tag }}-next'
checksum:
name_template: checksums.txt
algorithm: sha256
changelog:
filters:
exclude:
- '^docs:'
- '^test:'
sort: asc
dist: dist
env_files:
github_token: ~/.config/goreleaser/github_token
gitlab_token: ~/.config/goreleaser/gitlab_token
gitea_token: ~/.config/goreleaser/gitea_token
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: tar.gz
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.com

View file

@ -26,11 +26,15 @@
<string>public.app-category.developer-tools</string> <string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.8.0</string> <string>10.8.0</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSSupportsAutomaticGraphicsSwitching</key> <key>NSSupportsAutomaticGraphicsSwitching</key>
<true/> <true/>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>MIT License; The Postwoman Project</string> <string>MIT License; The Postwoman Project</string>
<!-- avoid having a blurry icon and text -->
<key>NSHighResolutionCapable</key>
<true/>
<!-- avoid showing the app on the Dock -->
<key>LSUIElement</key>
<string>1</string>
</dict> </dict>
</plist> </plist>