From f9a31f08c31ebf8e37b2f1bae17ab1a75fb53c75 Mon Sep 17 00:00:00 2001 From: Graham Steffaniak <42989099+gtsteffaniak@users.noreply.github.com> Date: Mon, 20 Jan 2025 18:31:38 -0500 Subject: [PATCH] updated go-releaser (#294) --- backend/.goreleaser.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/backend/.goreleaser.yaml b/backend/.goreleaser.yaml index dd8b371c..d173718b 100644 --- a/backend/.goreleaser.yaml +++ b/backend/.goreleaser.yaml @@ -21,7 +21,7 @@ builds: - "7" hooks: post: - - upx --force-macos {{ .Path }} # Compress the binary with UPX + - upx {{ .Path }} # Compress the binary with UPX # Build configuration for windows without arm - id: windows @@ -36,8 +36,24 @@ builds: post: - 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: - - 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 checksum: