mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 07:29:31 +01:00
fix #1031
This commit is contained in:
parent
06b2cb2efc
commit
4291c5f4e3
@ -30,25 +30,30 @@ builds:
|
|||||||
goarch: arm64
|
goarch: arm64
|
||||||
flags:
|
flags:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
archive:
|
# #1031: don't include the git hash in an official build
|
||||||
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
# default is: "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser"
|
||||||
format: tar.gz
|
ldflags:
|
||||||
replacements:
|
- "-s -w -X main.build={{.Version}}"
|
||||||
386: i386
|
|
||||||
amd64: x64
|
archives:
|
||||||
darwin: osx
|
-
|
||||||
format_overrides:
|
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
||||||
- goos: windows
|
format: tar.gz
|
||||||
format: zip
|
replacements:
|
||||||
files:
|
amd64: x86_64
|
||||||
- README
|
darwin: macos
|
||||||
- CHANGELOG.md
|
format_overrides:
|
||||||
- oragono.motd
|
- goos: windows
|
||||||
- oragono.yaml
|
format: zip
|
||||||
- docs/*
|
files:
|
||||||
- languages/*.yaml
|
- README
|
||||||
- languages/*.json
|
- CHANGELOG.md
|
||||||
- languages/*.md
|
- oragono.motd
|
||||||
wrap_in_directory: true
|
- oragono.yaml
|
||||||
|
- docs/*
|
||||||
|
- languages/*.yaml
|
||||||
|
- languages/*.json
|
||||||
|
- languages/*.md
|
||||||
|
wrap_in_directory: true
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
|
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
|
||||||
|
6
Makefile
6
Makefile
@ -1,14 +1,16 @@
|
|||||||
.PHONY: all install build release capdefs test smoke
|
.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
|
capdef_file = ./irc/caps/defs.go
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go install -v
|
go install -v -ldflags "-X main.commit=$(GIT_COMMIT)"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -v
|
go build -v -ldflags "-X main.commit=$(GIT_COMMIT)"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
goreleaser --skip-publish --rm-dist
|
goreleaser --skip-publish --rm-dist
|
||||||
|
Loading…
Reference in New Issue
Block a user