-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.linux.yml
94 lines (90 loc) · 1.98 KB
/
.goreleaser.linux.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
# This is an example .goreleaser.yml 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 tidy
- ./.hack/make/completions
builds:
- main: ./cmd/apfs
id: amd64
binary: apfs
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
- main: ./cmd/apfs
id: arm64
binary: apfs
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
archives:
- replacements:
amd64: x86_64
name_template: "apfs_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- README.md
- LICENSE
- completions/*
checksum:
name_template: 'checksums.linux.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^bumping"
- "^Update"
- "reorg"
- "updates"
- Merge pull request
- Merge branch
nfpms:
- id: packages
homepage: https://github.com/blacktop/go-apfs
description: |-
APFS parser written in pure Go.
maintainer: Blacktop <https://github.com/blacktop>
license: MIT
vendor: Blacktop
bindir: /usr/bin
section: utils
contents:
- src: ./completions/_bash
dst: /usr/share/bash-completion/completions/apfs
file_info:
mode: 0644
- src: ./completions/_fish
dst: /usr/share/fish/completions/apfs.fish
file_info:
mode: 0644
- src: ./completions/_zsh
dst: /usr/share/zsh/vendor-completions/_apfs
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/apfs/copyright
file_info:
mode: 0644
replacements:
amd64: x86_64
formats:
- apk
- deb
- rpm