From 4ec076cf345263b66ca70304f882428f4ec3dd9b Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 19 Jul 2020 19:04:49 -0700 Subject: [PATCH] Strip debug symbols from binary. For #76 --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 0cb04f1b5..969d85b68 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -51,7 +51,7 @@ build() { pushd dist/${NAME} >> /dev/null - CGO_ENABLED=1 ~/go/bin/xgo -ldflags "-X main.GitCommit=${GIT_COMMIT} -X main.BuildVersion=${VERSION} -X main.BuildType=${NAME}" -targets "${OS}/${ARCH}" github.com/gabek/owncast + CGO_ENABLED=1 ~/go/bin/xgo -ldflags "-s -w -X main.GitCommit=${GIT_COMMIT} -X main.BuildVersion=${VERSION} -X main.BuildType=${NAME}" -targets "${OS}/${ARCH}" github.com/gabek/owncast mv owncast-*-${ARCH} owncast zip -r -q -8 ../owncast-$NAME-$VERSION.zip .