-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
121 lines (109 loc) · 3.27 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
project_name: tc2-hat-controller
version: 2
release:
github:
owner: TheCacophonyProject
name: tc2-hat-controller
name_template: '{{.Tag}}'
builds:
- id: tc2-hat-attiny
binary: tc2-hat-attiny
main: ./cmd/tc2-hat-attiny
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X main.version={{.Version}} -X main.attinyMajorStr={{ .Env.ATTINY_MAJOR }} -X main.attinyMinorStr={{.Env.ATTINY_MINOR}} -X main.attinyPatchStr={{.Env.ATTINY_PATCH}} -X main.attinyHexHash={{.Env.ATTINY_HASH}}
- id: tc2-hat-rp2040
binary: tc2-hat-rp2040
main: ./cmd/tc2-hat-rp2040
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X main.version={{.Version}}
- id: tc2-hat-comms
binary: tc2-hat-comms
main: ./cmd/tc2-hat-comms
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X main.version={{.Version}}
- id: tc2-hat-temp
binary: tc2-hat-temp
main: ./cmd/tc2-hat-temp
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X main.version={{.Version}}
- id: tc2-hat-rtc
binary: tc2-hat-rtc
main: ./cmd/tc2-hat-rtc
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X main.version={{.Version}}
- id: tc2-i2c
binary: tc2-hat-i2c
main: ./cmd/tc2-hat-i2c
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X main.version={{.Version}}
nfpms:
- vendor: The Cacophony Project
homepage: http://cacophony.org.nz/
maintainer: Cacophony Developers <coredev@cacophony.org.nz>
description: Controls the ATtiny and other device on the Pi HAT
license: GPL v3.0
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
formats:
- deb
bindir: /usr/bin
contents:
- src: _release/raspberrypi-swd.cfg
dst: /etc/cacophony/raspberrypi-swd.cfg
- src: _release/org.cacophony.ATtiny.conf
dst: /etc/dbus-1/system.d/org.cacophony.ATtiny.conf
- src: _release/org.cacophony.RTC.conf
dst: /etc/dbus-1/system.d/org.cacophony.RTC.conf
- src: _release/org.cacophony.i2c.conf
dst: /etc/dbus-1/system.d/org.cacophony.i2c.conf
- src: _release/tc2-hat-temp.service
dst: /etc/systemd/system/tc2-hat-temp.service
- src: _release/tc2-hat-attiny.service
dst: /etc/systemd/system/tc2-hat-attiny.service
- src: _release/tc2-hat-comms.service
dst: /etc/systemd/system/tc2-hat-comms.service
- src: _release/stay-on-for
dst: /usr/bin/stay-on-for
- src: _release/10-notify-attiny
dst: /lib/dhcpcd/dhcpcd-hooks/10-notify-attiny
- src: _release/attiny-firmware.hex
dst: /etc/cacophony/attiny-firmware.hex
- src: _release/org.cacophony.beacon.conf
dst: /etc/dbus-1/system.d/org.cacophony.beacon.conf
- src: _release/notify-attiny-reboot
dst: /usr/bin/notify-attiny-reboot
- src: _release/disable-aux-uart
dst: /usr/bin/disable-aux-uart
- src: _release/enable-aux-uart
dst: /usr/bin/enable-aux-uart
- src: _release/rpi-reboot.service
dst: /etc/systemd/system/rpi-reboot.service
- src: _release/tc2-hat-rtc.service
dst: /etc/systemd/system/tc2-hat-rtc.service
- src: _release/tc2-hat-i2c.service
dst: /etc/systemd/system/tc2-hat-i2c.service
dependencies:
#- python3-pip
- openocd
scripts:
postinstall: "./_release/postinstall.sh"
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dist: dist