filebrowser/backend/.goreleaser.yaml

44 lines
901 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
- -s -w -X github.com/gtsteffaniak/filebrowser/version.Version={{ .Version }} -X github.com/gtsteffaniak/filebrowser/version.CommitSHA={{ .ShortCommit }}
2024-08-04 15:28:38 +00:00
main: main.go
binary: filebrowser
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
2024-08-04 17:50:35 +00:00
hooks:
post:
- upx {{ .Path }} # Compress the binary with UPX
# Build configuration for windows without arm
2024-12-26 17:31:04 +00:00
# - id: windows
# ldflags: *ldflags
# main: main.go
# binary: filebrowser
# goos:
# - windows
# goarch:
# - amd64
# - arm64
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