Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Strip debug symbols from binary. For #76

Gabe Kangasdce04025322c
diff --git a/scripts/build.sh b/scripts/build.sh
index 0cb04f1b52..969d85b689 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 .