filebrowser/backend/.goreleaser.yaml

47 lines
1006 B
YAML
Raw Normal View History

2024-08-04 17:50:35 +00:00
# .goreleaser.yaml
2024-08-04 15:28:38 +00:00
project_name: filebrowser
2024-08-04 17:50:35 +00:00
version: 2
2024-08-04 15:28:38 +00:00
builds:
2024-08-04 17:50:35 +00:00
# Build configuration for darwin and linux
- id: default
2024-08-24 22:02:33 +00:00
ldflags: &ldflags
2025-01-06 14:43:37 +00:00
- -s -w -X github.com/gtsteffaniak/filebrowser/backend/version.Version={{ .Version }} -X github.com/gtsteffaniak/filebrowser/backend/version.CommitSHA={{ .ShortCommit }}
2024-08-04 15:28:38 +00:00
main: main.go
binary: filebrowser
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
2025-01-06 14:43:37 +00:00
- "6"
- "7"
2024-08-04 17:50:35 +00:00
hooks:
2025-01-06 14:43:37 +00:00
post:
2025-01-09 02:12:53 +00:00
- upx --force-macos {{ .Path }} # Compress the binary with UPX
2024-08-04 17:50:35 +00:00
# Build configuration for windows without arm
2025-01-13 00:50:22 +00:00
- id: windows
ldflags: *ldflags
main: main.go
binary: filebrowser
goos:
- windows
goarch:
- amd64
- arm64
hooks:
post:
- upx {{ .Path }} # Compress the binary with UPX
2024-08-04 15:28:38 +00:00
archives:
- name_template: "{{.Os}}-{{.Arch}}{{if .Arm}}v{{.Arm}}{{end}}-{{ .ProjectName }}"
format: binary
2024-08-04 17:50:35 +00:00
checksum:
disable: true