File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ for PLATFORM in $PLATFORMS; do
2121 GOARCH=${PLATFORM#*/ }
2222 BIN_FILENAME=" ${OUTPUT_DIR} /${NAME} -${GOOS} -${GOARCH} "
2323 if [[ " ${GOOS} " == " windows" ]]; then BIN_FILENAME=" ${BIN_FILENAME} .exe" ; fi
24- CMD=" GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \" -s -w\" -o ${BIN_FILENAME} $@ "
24+ CMD=" GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \" -s -w -extldflags '-static' \" -o ${BIN_FILENAME} $@ "
2525 echo $CMD
2626 eval $CMD || FAILURES=" ${FAILURES} ${PLATFORM} "
2727done
@@ -33,7 +33,7 @@ for GOOS in $PLATFORMS_ARM; do
3333 # build for each ARM version
3434 for GOARM in 7 6 5; do
3535 BIN_FILENAME=" ${OUTPUT_DIR} /${NAME} -${GOOS} -${GOARCH}${GOARM} "
36- CMD=" GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \" -s -w\" -o ${BIN_FILENAME} $@ "
36+ CMD=" GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \" -s -w -extldflags '-static' \" -o ${BIN_FILENAME} $@ "
3737 echo " ${CMD} "
3838 eval " ${CMD} " || FAILURES=" ${FAILURES} ${GOOS} /${GOARCH}${GOARM} "
3939 done
Original file line number Diff line number Diff line change @@ -23,10 +23,14 @@ func main() {
2323 port = strconv .Itoa (int (conf .Server .Port ))
2424 }
2525 }
26- envPort := os .Getenv ("port " )
26+ envPort := os .Getenv ("PORT " )
2727 if envPort != "" {
2828 port = envPort
2929 }
30+ envWsUrl := os .Getenv ("WS_URL" )
31+ if envWsUrl != "" {
32+ bot .WsUrl = envWsUrl
33+ }
3034 envUin := os .Getenv ("uin" )
3135 envPass := os .Getenv ("password" )
3236 if envUin != "" || envPass != "" {
You can’t perform that action at this time.
0 commit comments