forked from drpaneas/romie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
160 lines (134 loc) · 3.78 KB
/
.goreleaser.yml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# .goreleaser.yml proposed options for Romie
builds:
- id: romie
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
- openbsd
- netbsd
- dragonfly
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386, arm
- goos: windows
goarch: arm, arm64
- goos: freebsd
goarch: arm64
- goos: netbsd
goarch: arm64
- goos: dragonfly
goarch: 386, arm, arm64
goarm:
- 6
- 7
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
dockers:
- goos: linux
goarch: amd64
binaries:
- romie
image_templates:
- "romie/romie:latest"
- "romie/romie:{{ .Tag }}"
skip_push: false
dockerfile: Dockerfile
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
nfpms:
- id: "default"
package_name: romie
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- romie
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
arm: ARM
arm64: ARM64
linux: Linux
windows: Windows
openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
dragonfly: DragonFlyBSD
vendor: Romie Team.
homepage: https://github.com/drpaneas/romie
maintainer: Bill <[email protected]>
description: Software for crawling rom sites and searching for roms.
license: Apache 2.0
formats:
- apk
- deb
- rpm
dependencies:
- git
recommends:
suggests:
conflicts:
# Default: /usr/local/bin
bindir: /usr/bin
epoch: 1
release: 1
# Makes a meta package - an empty package that contains only supporting files and dependencies.
# When set to `true`, the `builds` option is ignored.
# Default: false.
meta: false
# Empty folders that should be created and managed by the packager
# implementation.
# Default is empty.
empty_folders:
# Files to add to your package (beyond the binary).
# Keys are source paths/globs to get the files from.
# Values are the destination locations of the files in the package.
# Use globs to add all contents of a folder.
files:
# Config files to add to your package. They are about the same as
# the files keyword, except package managers treat them differently (while
# uninstalling, mostly).
# Keys are source paths/globs to get the files from.
# Values are the destination locations of the files in the package.
config_files:
# Scripts to execute during the installation of the package.
# Keys are the possible targets during the installation process
# Values are the paths to the scripts which will be executed
# example:
# preinstall: "scripts/preinstall.sh"
# postinstall: "scripts/postinstall.sh"
# preremove: "scripts/preremove.sh"
# postremove: "scripts/postremove.sh"
scripts:
# Some attributes can be overrided per package format.
overrides:
deb:
conflicts:
dependencies:
suggests:
recommends:
empty_folders:
rpm:
replacements:
amd64: x86_64
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
files:
config_files:
scripts:
checksum:
name_template: "{{ .ProjectName }}{{ .Version }}_checksums.txt"
algorithm: sha256
disable: false