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
|
|
|
|
ldflags:
|
2024-08-04 15:28:38 +00:00
|
|
|
- -s -w
|
|
|
|
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
|
|
|
|
- id: windows
|
|
|
|
ldflags:
|
|
|
|
- -s -w
|
|
|
|
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
|
|
|
|
|