Skip to content

Commit

Permalink
build(goreleaser): adjust config file
Browse files Browse the repository at this point in the history
- move hooks to logical locatons
- calculate artifact sizes
- don't use semver for -app-version in fyne_cross
  • Loading branch information
joshuar committed Oct 6, 2023
1 parent fef3bae commit f152e5d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
before:
hooks:
- go mod tidy
- go generate ./...
- desktop-file-validate assets/go-hass-agent.desktop
- fyne-cross linux -icon internal/agent/ui/assets/logo-pretty.png -release -app-version {{.Version}}

report_sizes: true

changelog:
use: github-native
Expand All @@ -25,6 +25,12 @@ builds:
- amd64
# - arm
# - arm64
hooks:
pre:
- go generate ./...
post:
- fyne-cross linux -icon internal/agent/ui/assets/logo-pretty.png -release -app-version {{.RawVersion}}


archives:
- format: binary
Expand Down

0 comments on commit f152e5d

Please sign in to comment.