From 4ce0d48f631a15c0e749619d533380a3384ca735 Mon Sep 17 00:00:00 2001 From: artemis everfree Date: Fri, 14 Aug 2020 15:25:59 -0700 Subject: [PATCH] strip debug symbols on release --- .gitignore | 5 +++-- dist/dist.sh | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ef6239a..186f77c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -./peirates -dist/peirates-* +/peirates +/dist/peirates-* +/dist/peirates .DS_Store .vscode diff --git a/dist/dist.sh b/dist/dist.sh index 67553e6..2137d45 100755 --- a/dist/dist.sh +++ b/dist/dist.sh @@ -2,7 +2,7 @@ build() { echo "$1" - GOOS=linux GOARCH="$1" go build -i ../cmd/peirates + GOOS=linux GOARCH="$1" go build -ldflags="-s -w" -i ../cmd/peirates mkdir peirates-linux-"$1" mv peirates peirates-linux-"$1" tar cJf peirates-linux-"$1".tar.xz peirates-linux-"$1" @@ -14,7 +14,7 @@ if [ -z $1 ] ; then build amd64 build arm build arm64 - build 386 + build 386 else build $1 fi