apg-go/.goreleaser.yaml
Winni Neessen ab818cf7df
Add logo to README and release package
A new logo has been added to the README file. The logo has also been included in the release package by updating the .goreleaser.yaml file. The related asset files have been managed properly with necessary hooks.
2024-04-03 21:56:14 +02:00

99 lines
No EOL
1.7 KiB
YAML

# SPDX-FileCopyrightText: 2021-2024 Winni Neessen <wn@neessen.dev>
#
# SPDX-License-Identifier: CC0-1.0
version: 1
before:
hooks:
- go test -cover -race -shuffle=on
- go mod tidy
- go mod download
- go mod verify
- cp assets/apg-go.ico ./logo.ico
after:
hooks:
- rm ./logo.ico
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
- netbsd
goarch:
- 386
- arm
- arm64
- amd64
- ppc64le
- s390x
- mips
- mips64
- mipsle
- mips64le
goarm:
- 6
- 7
goamd64:
- v1
main: ./cmd/apg
binary: apg
ldflags:
- -w -s -extldflags "-static"
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
changelog:
use: github-native
nfpms:
- vendor: Winni Neessen
homepage: https://github.com/wneessen/apg-go
maintainer: Winni Neessen <wn@neessen.dev>
description: |-
A "Automated Password Generator"-clone written in Go
license: MIT
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
file_name_template: >-
{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}
{{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}}
{{- if not (eq .Amd64 "v1")}}{{ .Amd64 }}{{ end -}}
{{- .ConventionalExtension -}}
dmg:
- replace: false
extra_files:
- logo.ico
universal_binaries:
- replace: false
report_sizes: true
signs:
- artifacts: all
stdin: "{{ .Env.GPG_PASSWORD }}"
args: ["-u", "wn@neessen.dev", "--output", "${signature}", "--detach-sign", "${artifact}"]
sboms:
- artifacts: archive
github_urls:
gomod:
mod: mod