43 lines
945 B
YAML
43 lines
945 B
YAML
project_name: harmony
|
|
|
|
env:
|
|
- GO111MODULE=on
|
|
- CGO_ENABLED=1
|
|
before:
|
|
hooks:
|
|
- go get github.com/omeid/go-resources/cmd/resources
|
|
- resources -output=./pkg/web/assets_embed.go -tag=embed -package=web -var=assets -trim=pkg/web/public/ pkg/web/public/* pkg/web/public/assets/* pkg/web/public/assets/css/* pkg/web/public/assets/js/*
|
|
builds:
|
|
-
|
|
id: harmony-server
|
|
binary: harmony-server
|
|
main: ./cmd/harmony-server
|
|
flags:
|
|
- -tags=embed
|
|
ldflags:
|
|
- -s -w -X code.rocketnine.space/tslocum/harmony/pkg/config.Version={{.Version}}
|
|
goos:
|
|
# - darwin
|
|
# - freebsd
|
|
- linux
|
|
# - windows
|
|
goarch:
|
|
- 386
|
|
- amd64
|
|
archives:
|
|
-
|
|
id: harmony
|
|
builds:
|
|
- harmony-server
|
|
replacements:
|
|
386: i386
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- ./*.md
|
|
- CHANGELOG
|
|
- LICENSE
|
|
checksum:
|
|
name_template: 'checksums.txt'
|