Selaa lähdekoodia

reduce binary size by stripping debug information

V2Ray 10 vuotta sitten
vanhempi
commit
db23bdfc20
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      release/release.sh

+ 1 - 1
release/release.sh

@@ -18,7 +18,7 @@ function build {
   fi
   mkdir -p $REL_PATH/config
   cp -R $GOPATH/src/github.com/v2ray/v2ray-core/release/config/* $REL_PATH/config/
-  GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${TARGET} -compiler gc github.com/v2ray/v2ray-core/release/server
+  GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${TARGET} -compiler gc -ldflags "-s" github.com/v2ray/v2ray-core/release/server
   
   ZIP_FILE=$BIN_PATH/v2ray${SUFFIX}.zip
   if [ -f $ZIP_FILE ]; then