1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-03 19:56:22 -07:00

Only strip debugging symbols for releases

This commit is contained in:
Eggbertx 2020-03-27 17:42:53 -07:00
parent 5986d572bb
commit 0bcd93379b
2 changed files with 3 additions and 4 deletions

4
.gitignore vendored
View file

@ -1,6 +1,4 @@
gochan.json gochan*
gochan
gochan.exe
lib/ lib/
log/ log/
releases/ releases/

View file

@ -14,7 +14,7 @@ VERSION=$(shell cat version)
GCFLAGS=-trimpath=${PWD} GCFLAGS=-trimpath=${PWD}
ASMFLAGS=-trimpath=${PWD} ASMFLAGS=-trimpath=${PWD}
LDFLAGS=-X main.versionStr=${VERSION} -w -s LDFLAGS=-X main.versionStr=${VERSION}
MINGW_PREFIX=GOARCH=amd64 CC='x86_64-w64-mingw32-gcc -fno-stack-protector -D_FORTIFY_SOURCE=0 -lssp MINGW_PREFIX=GOARCH=amd64 CC='x86_64-w64-mingw32-gcc -fno-stack-protector -D_FORTIFY_SOURCE=0 -lssp
DOCUMENT_ROOT_FILES= \ DOCUMENT_ROOT_FILES= \
@ -97,6 +97,7 @@ release:
cp sample-configs/*.nginx ${RELEASE_DIR}/sample-configs/ cp sample-configs/*.nginx ${RELEASE_DIR}/sample-configs/
cp sample-configs/gochan.example.json ${RELEASE_DIR}/sample-configs/ cp sample-configs/gochan.example.json ${RELEASE_DIR}/sample-configs/
make build make build
strip ${BINEXE}
make sass-minified make sass-minified
mv ${BINEXE} ${RELEASE_DIR}/ mv ${BINEXE} ${RELEASE_DIR}/
ifeq (${GCOS_NAME},macos) ifeq (${GCOS_NAME},macos)