98 lines
2.4 KiB
YAML
98 lines
2.4 KiB
YAML
before:
|
|
hooks:
|
|
- desktop-file-validate assets/go-hass-agent.desktop
|
|
- go generate ./...
|
|
report_sizes: true
|
|
changelog:
|
|
use: github-native
|
|
sort: asc
|
|
abbrev: 0
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- typo
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=1
|
|
goos:
|
|
- linux
|
|
# - windows
|
|
# - darwin
|
|
goarch:
|
|
- amd64
|
|
# - arm
|
|
# - arm64
|
|
hooks:
|
|
post:
|
|
- fyne-cross linux -icon internal/agent/ui/assets/logo-pretty.png -release -app-version {{.RawVersion}}
|
|
signs:
|
|
- cmd: cosign
|
|
stdin: '{{ .Env.COSIGN_PWD }}'
|
|
args:
|
|
- "sign-blob"
|
|
- "--key=cosign.key"
|
|
- "--output-signature=${signature}"
|
|
- "${artifact}"
|
|
- "--yes" # needed on cosign 2.0.0+
|
|
artifacts: all
|
|
archives:
|
|
- format: binary
|
|
release:
|
|
extra_files:
|
|
- glob: fyne-cross/dist/linux-amd64/go-hass-agent.tar.xz
|
|
nfpms:
|
|
- id: go-hass-agent
|
|
package_name: go-hass-agent
|
|
file_name_template: "{{ .ConventionalFileName }}"
|
|
vendor: org.github.joshuar
|
|
homepage: https://github.com/joshuar/go-hass-app
|
|
maintainer: Joshua Rich <joshua.rich@gmail.com>
|
|
description: |-
|
|
A Home Assistant, native app for desktop/laptop devices.
|
|
license: MIT
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
- archlinux
|
|
bindir: /usr/bin
|
|
overrides:
|
|
rpm:
|
|
dependencies:
|
|
- libglvnd-glx
|
|
- libX11
|
|
- libXrandr
|
|
- libXxf86vm
|
|
- libXi
|
|
- libXcursor
|
|
- libXinerama
|
|
deb:
|
|
dependencies:
|
|
- libgl1
|
|
- libxi6
|
|
- libxcursor1
|
|
- libxrandr2
|
|
- libxinerama1
|
|
release: "1"
|
|
section: default
|
|
priority: extra
|
|
meta: false
|
|
contents:
|
|
- src: LICENSE
|
|
dst: /usr/share/licenses/go-hass-agent/LICENSE
|
|
- src: README.md
|
|
dst: /usr/share/doc/go-hass-agent/README.md
|
|
- src: internal/agent/ui/assets/logo-pretty.png
|
|
dst: /usr/share/pixmaps/go-hass-agent.png
|
|
- src: assets/go-hass-agent.desktop
|
|
dst: /usr/share/applications/go-hass-agent.desktop
|
|
- src: init/go-hass-agent.service
|
|
dst: /usr/lib/systemd/user/go-hass-agent.service
|
|
rpm:
|
|
compression: lzma
|
|
deb:
|
|
lintian_overrides:
|
|
- changelog-file-missing-in-native-package
|
|
archlinux:
|
|
packager: GoReleaser <staff@goreleaser.com>
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|