Skip to content

Commit

Permalink
replace _ with - in package name
Browse files Browse the repository at this point in the history
  • Loading branch information
orgrim committed Mar 12, 2023
1 parent 410fe81 commit 24d1e11
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# .goreleaser.yml created by: goreleaser version 0.156.2
# .goreleaser.yml created for goreleaser version v1.16.1
# Documentation at http://goreleaser.com
before:
hooks:
Expand All @@ -11,14 +11,11 @@ builds:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- format_overrides:
- goos: windows
format: zip
checksum:
Expand All @@ -34,7 +31,8 @@ changelog:
source:
enabled: true
nfpms:
- homepage: https://github.com/orgrim/pg_back/
- package_name: pg-back
homepage: https://github.com/orgrim/pg_back/
maintainer: Nicolas Thauvin <nico@orgrim.net>
description: |
pg_back uses pg_dumpall to dump roles and tablespaces, pg_dump to dump
Expand All @@ -57,15 +55,17 @@ nfpms:
- src: contrib/systemd/pg_back@.timer
dst: /lib/systemd/system/pg_back@.timer
packager: deb

replaces:
- pg_back
overrides:
deb:
dependencies:
- postgresql-client
rpm:
replacements:
amd64: x86_64
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
file_name_template: >-
{{ .PackageName }}-{{ .Version }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
dependencies:
- postgresql
rpm:
Expand Down

0 comments on commit 24d1e11

Please sign in to comment.