Skip to content

Commit 5531a3f

Browse files
committed
remove unpopular system
1 parent c49ff2b commit 5531a3f

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

build.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ OUTPUT_DIR="output"
66
PLATFORMS="darwin/amd64" # amd64 only as of go1.5
77
PLATFORMS="$PLATFORMS windows/amd64 windows/386" # arm compilation not available for Windows
88
PLATFORMS="$PLATFORMS linux/amd64 linux/386"
9-
PLATFORMS="$PLATFORMS linux/ppc64 linux/ppc64le"
10-
PLATFORMS="$PLATFORMS linux/mips64 linux/mips64le" # experimental in go1.6
11-
PLATFORMS="$PLATFORMS freebsd/amd64"
12-
PLATFORMS="$PLATFORMS netbsd/amd64" # amd64 only as of go1.6
13-
PLATFORMS="$PLATFORMS openbsd/amd64" # amd64 only as of go1.6
14-
PLATFORMS="$PLATFORMS dragonfly/amd64" # amd64 only as of go1.5
15-
PLATFORMS="$PLATFORMS plan9/amd64 plan9/386" # as of go1.4
16-
PLATFORMS="$PLATFORMS solaris/amd64" # as of go1.3
9+
#PLATFORMS="$PLATFORMS linux/ppc64 linux/ppc64le"
10+
#PLATFORMS="$PLATFORMS linux/mips64 linux/mips64le" # experimental in go1.6
11+
#PLATFORMS="$PLATFORMS freebsd/amd64"
12+
#PLATFORMS="$PLATFORMS netbsd/amd64" # amd64 only as of go1.6
13+
#PLATFORMS="$PLATFORMS openbsd/amd64" # amd64 only as of go1.6
14+
#PLATFORMS="$PLATFORMS dragonfly/amd64" # amd64 only as of go1.5
15+
#PLATFORMS="$PLATFORMS plan9/amd64 plan9/386" # as of go1.4
16+
#PLATFORMS="$PLATFORMS solaris/amd64" # as of go1.3
1717
PLATFORMS="$PLATFORMS linux/arm64"
1818

1919
for PLATFORM in $PLATFORMS; do
@@ -26,18 +26,18 @@ for PLATFORM in $PLATFORMS; do
2626
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
2727
done
2828

29-
# ARM builds
30-
PLATFORMS_ARM="linux freebsd netbsd"
31-
for GOOS in $PLATFORMS_ARM; do
32-
GOARCH="arm"
33-
# build for each ARM version
34-
for GOARM in 7 6 5; do
35-
BIN_FILENAME="${OUTPUT_DIR}/${NAME}-${GOOS}-${GOARCH}${GOARM}"
36-
CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \"-s -w -extldflags '-static'\" -o ${BIN_FILENAME} $@"
37-
echo "${CMD}"
38-
eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
39-
done
40-
done
29+
## ARM builds
30+
#PLATFORMS_ARM="linux freebsd netbsd"
31+
#for GOOS in $PLATFORMS_ARM; do
32+
# GOARCH="arm"
33+
# # build for each ARM version
34+
# for GOARM in 7 6 5; do
35+
# BIN_FILENAME="${OUTPUT_DIR}/${NAME}-${GOOS}-${GOARCH}${GOARM}"
36+
# CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \"-s -w -extldflags '-static'\" -o ${BIN_FILENAME} $@"
37+
# echo "${CMD}"
38+
# eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
39+
# done
40+
#done
4141

4242
cp application.yml "${OUTPUT_DIR}/application.yml"
4343
cp -r static "${OUTPUT_DIR}/static" # https://github.com/ProtobufBot/Client-UI 前端编译产物dist

0 commit comments

Comments
 (0)