From 1ef0869a549f858c7cd6c4328a65f90c149401d6 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 14 Jul 2020 13:58:39 -0400 Subject: [PATCH] Strip debugging info from binaries. Closes #405 --- .goreleaser.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8e05f116b..842747fd4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -19,7 +19,7 @@ builds: flags: - -tags=embed ldflags: - - -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} + - -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} - id: navidrome_linux_amd64 env: @@ -32,7 +32,7 @@ builds: - -tags=embed ldflags: - "-extldflags '-static'" - - -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} + - -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} - id: navidrome_linux_arm env: @@ -50,7 +50,7 @@ builds: - -tags=embed ldflags: - "-extldflags '-static'" - - -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} + - -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} - id: navidrome_linux_arm64 env: @@ -64,7 +64,7 @@ builds: - -tags=embed ldflags: - "-extldflags '-static'" - - -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} + - -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} - id: navidrome_windows_i686 env: @@ -79,7 +79,7 @@ builds: - -tags=embed ldflags: - "-extldflags '-static'" - - -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} + - -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} - id: navidrome_windows_x64 env: @@ -94,7 +94,7 @@ builds: - -tags=embed ldflags: - "-extldflags '-static'" - - -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} + - -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}} archives: - format_overrides: