updated go-releaser (#294)
This commit is contained in:
parent
09493392db
commit
f9a31f08c3
|
@ -21,7 +21,7 @@ builds:
|
||||||
- "7"
|
- "7"
|
||||||
hooks:
|
hooks:
|
||||||
post:
|
post:
|
||||||
- upx --force-macos {{ .Path }} # Compress the binary with UPX
|
- upx {{ .Path }} # Compress the binary with UPX
|
||||||
|
|
||||||
# Build configuration for windows without arm
|
# Build configuration for windows without arm
|
||||||
- id: windows
|
- id: windows
|
||||||
|
@ -36,8 +36,24 @@ builds:
|
||||||
post:
|
post:
|
||||||
- upx {{ .Path }} # Compress the binary with UPX
|
- upx {{ .Path }} # Compress the binary with UPX
|
||||||
|
|
||||||
|
# Build configuration for windows without arm & upx
|
||||||
|
- id: macos
|
||||||
|
ldflags: *ldflags
|
||||||
|
main: main.go
|
||||||
|
binary: filebrowser
|
||||||
|
goos:
|
||||||
|
- darwin
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- name_template: "{{.Os}}-{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}-{{ .ProjectName }}"
|
- name_template: >
|
||||||
|
{{- if eq .Os "windows" -}}
|
||||||
|
{{.ProjectName}}
|
||||||
|
{{- else -}}
|
||||||
|
{{.Os}}-{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}-{{.ProjectName}}
|
||||||
|
{{- end -}}
|
||||||
format: binary
|
format: binary
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
|
|
Loading…
Reference in New Issue