-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yaml
99 lines (85 loc) · 1.74 KB
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# 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