updated go-releaser (#294)

This commit is contained in:
Graham Steffaniak 2025-01-20 18:31:38 -05:00 committed by GitHub
parent 09493392db
commit f9a31f08c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 2 deletions

View File

@ -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: