From 18f5d74402ff48b426aa4e83b13a14555de0c449 Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Mon, 7 Mar 2022 19:26:58 +0100 Subject: [PATCH] optimize build --- .goreleaser.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 175c5ac..9aaadd6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,12 +1,9 @@ project_name: mullvad-best-server -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com + 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: - env: - CGO_ENABLED=0 @@ -15,6 +12,9 @@ builds: - windows - darwin mod_timestamp: "{{ .CommitTimestamp }}" + ldflags: + - -s -w + archives: - replacements: darwin: Darwin @@ -24,10 +24,13 @@ archives: amd64: x86_64 format: binary name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + checksum: name_template: 'checksums.txt' + snapshot: name_template: "{{ incpatch .Version }}-next" + changelog: sort: asc filters: