mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 16:45:43 +00:00
112 lines
2.4 KiB
YAML
112 lines
2.4 KiB
YAML
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
||
|
# Make sure to check the documentation at https://goreleaser.com
|
||
|
env:
|
||
|
- CGO_ENABLED=1
|
||
|
before:
|
||
|
hooks:
|
||
|
# You may remove this if you don't use go modules.
|
||
|
- go mod tidy
|
||
|
# you may remove this if you don't need go generate
|
||
|
- go generate ./...
|
||
|
|
||
|
builds:
|
||
|
- id: homebox-darwin-amd64
|
||
|
binary: homebox
|
||
|
main: ./app/api/main.go
|
||
|
goarch:
|
||
|
- amd64
|
||
|
goos:
|
||
|
- darwin
|
||
|
env:
|
||
|
- CC=o64-clang
|
||
|
- CXX=o64-clang++
|
||
|
flags:
|
||
|
- -trimpath
|
||
|
|
||
|
- id: homebox-darwin-arm64
|
||
|
binary: homebox
|
||
|
main: ./app/api/main.go
|
||
|
goarch:
|
||
|
- arm64
|
||
|
goos:
|
||
|
- darwin
|
||
|
env:
|
||
|
- CC=oa64-clang
|
||
|
- CXX=oa64-clang++
|
||
|
flags:
|
||
|
- -trimpath
|
||
|
|
||
|
- id: homebox-linux-amd64
|
||
|
binary: homebox
|
||
|
main: ./app/api/main.go
|
||
|
env:
|
||
|
- CC=x86_64-linux-gnu-gcc
|
||
|
- CXX=x86_64-linux-gnu-g++
|
||
|
goarch:
|
||
|
- amd64
|
||
|
goos:
|
||
|
- linux
|
||
|
flags:
|
||
|
- -trimpath
|
||
|
ldflags:
|
||
|
- -extldflags "-lc -lrt -lpthread --static"
|
||
|
|
||
|
- id: homebox-linux-arm64
|
||
|
binary: homebox
|
||
|
main: ./app/api/main.go
|
||
|
goarch:
|
||
|
- arm64
|
||
|
goos:
|
||
|
- linux
|
||
|
env:
|
||
|
- CC=aarch64-linux-gnu-gcc
|
||
|
- CXX=aarch64-linux-gnu-g++
|
||
|
flags:
|
||
|
- -trimpath
|
||
|
ldflags:
|
||
|
- -extldflags "-lc -lrt -lpthread --static"
|
||
|
|
||
|
- id: homebox-windows-amd64
|
||
|
binary: homebox
|
||
|
main: ./app/api/main.go
|
||
|
goarch:
|
||
|
- amd64
|
||
|
goos:
|
||
|
- windows
|
||
|
env:
|
||
|
- CC=x86_64-w64-mingw32-gcc
|
||
|
- CXX=x86_64-w64-mingw32-g++
|
||
|
flags:
|
||
|
- -trimpath
|
||
|
- -buildmode=exe
|
||
|
|
||
|
archives:
|
||
|
- format: tar.gz
|
||
|
# this name template makes the OS and Arch compatible with the results of uname.
|
||
|
name_template: >-
|
||
|
{{ .ProjectName }}_
|
||
|
{{- title .Os }}_
|
||
|
{{- if eq .Arch "amd64" }}x86_64
|
||
|
{{- else if eq .Arch "386" }}i386
|
||
|
{{- else }}{{ .Arch }}{{ end }}
|
||
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||
|
# use zip for windows archives
|
||
|
format_overrides:
|
||
|
- goos: windows
|
||
|
format: zip
|
||
|
checksum:
|
||
|
name_template: 'checksums.txt'
|
||
|
snapshot:
|
||
|
name_template: "{{ incpatch .Version }}-next"
|
||
|
changelog:
|
||
|
sort: asc
|
||
|
filters:
|
||
|
exclude:
|
||
|
- '^docs:'
|
||
|
- '^test:'
|
||
|
|
||
|
# The lines beneath this are called `modelines`. See `:help modeline`
|
||
|
# Feel free to remove those if you don't want/use them.
|
||
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|