Skip to content

Commit

Permalink
split archives
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Oct 5, 2023
1 parent 4836a4a commit d4de0b2
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,42 @@ archives:
format_overrides:
- goos: windows
format: zip
- id: warp-plugins
builds: [mysql, sqlite, file]
- id: warp-mysql-plugin
builds: [mysql]
format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_plugins_
{{ .ProjectName }}_mysql_plugin_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: warp-sqlite-plugin
builds: [sqlite]
format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_sqlite_plugin_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: warp-file-plugin
builds: [file]
format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_file_plugin_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
Expand Down

0 comments on commit d4de0b2

Please sign in to comment.