3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00
This commit is contained in:
Shivaram Lingamneni 2020-05-20 10:31:05 -04:00
parent 06b2cb2efc
commit 4291c5f4e3
2 changed files with 29 additions and 22 deletions

View File

@ -30,25 +30,30 @@ builds:
goarch: arm64
flags:
- -trimpath
archive:
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: tar.gz
replacements:
386: i386
amd64: x64
darwin: osx
format_overrides:
- goos: windows
format: zip
files:
- README
- CHANGELOG.md
- oragono.motd
- oragono.yaml
- docs/*
- languages/*.yaml
- languages/*.json
- languages/*.md
wrap_in_directory: true
# #1031: don't include the git hash in an official build
# default is: "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser"
ldflags:
- "-s -w -X main.build={{.Version}}"
archives:
-
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: tar.gz
replacements:
amd64: x86_64
darwin: macos
format_overrides:
- goos: windows
format: zip
files:
- README
- CHANGELOG.md
- oragono.motd
- oragono.yaml
- docs/*
- languages/*.yaml
- languages/*.json
- languages/*.md
wrap_in_directory: true
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"

View File

@ -1,14 +1,16 @@
.PHONY: all install build release capdefs test smoke
GIT_COMMIT := $(shell git rev-parse --short=16 HEAD 2> /dev/null)
capdef_file = ./irc/caps/defs.go
all: install
install:
go install -v
go install -v -ldflags "-X main.commit=$(GIT_COMMIT)"
build:
go build -v
go build -v -ldflags "-X main.commit=$(GIT_COMMIT)"
release:
goreleaser --skip-publish --rm-dist