Skip to content

Commit

Permalink
Changed linux package filename template
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcc committed Nov 24, 2023
1 parent 4421919 commit 775c818
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ builds:
main: ./cmd/cloudcored
binary: cloudcored
ldflags:
- -s -w -X github.com/clarkmcc/cloudcore/pkg/version.Version={{.Version}} -X github.com/clarkmcc/cloudcore/pkg/version.Hash={{.Commit}}
- -s -w -X github.com/clarkmcc/cloudcore/pkg/version.Version={{.Version}} -X github.com/clarkmcc/cloudcore/pkg/version.Hash={{.Commit}} -X github.com/clarkmcc/cloudcore/pkg/version.GOARM={{.Env.GOARM}}
env:
- CGO_ENABLED=0
targets:
Expand Down Expand Up @@ -38,6 +38,7 @@ nfpms:
- deb
scripts:
preinstall: scripts/linux/preinstall.sh
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}_{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}"
# todo: Setup systemd service
# postinstall: scripts/linux/postinstall.sh
# preremove: scripts/linux/preremove.sh
Expand Down

0 comments on commit 775c818

Please sign in to comment.