Skip to content

Commit

Permalink
remove unpopular system
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Nov 29, 2020
1 parent c49ff2b commit 5531a3f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ OUTPUT_DIR="output"
PLATFORMS="darwin/amd64" # amd64 only as of go1.5
PLATFORMS="$PLATFORMS windows/amd64 windows/386" # arm compilation not available for Windows
PLATFORMS="$PLATFORMS linux/amd64 linux/386"
PLATFORMS="$PLATFORMS linux/ppc64 linux/ppc64le"
PLATFORMS="$PLATFORMS linux/mips64 linux/mips64le" # experimental in go1.6
PLATFORMS="$PLATFORMS freebsd/amd64"
PLATFORMS="$PLATFORMS netbsd/amd64" # amd64 only as of go1.6
PLATFORMS="$PLATFORMS openbsd/amd64" # amd64 only as of go1.6
PLATFORMS="$PLATFORMS dragonfly/amd64" # amd64 only as of go1.5
PLATFORMS="$PLATFORMS plan9/amd64 plan9/386" # as of go1.4
PLATFORMS="$PLATFORMS solaris/amd64" # as of go1.3
#PLATFORMS="$PLATFORMS linux/ppc64 linux/ppc64le"
#PLATFORMS="$PLATFORMS linux/mips64 linux/mips64le" # experimental in go1.6
#PLATFORMS="$PLATFORMS freebsd/amd64"
#PLATFORMS="$PLATFORMS netbsd/amd64" # amd64 only as of go1.6
#PLATFORMS="$PLATFORMS openbsd/amd64" # amd64 only as of go1.6
#PLATFORMS="$PLATFORMS dragonfly/amd64" # amd64 only as of go1.5
#PLATFORMS="$PLATFORMS plan9/amd64 plan9/386" # as of go1.4
#PLATFORMS="$PLATFORMS solaris/amd64" # as of go1.3
PLATFORMS="$PLATFORMS linux/arm64"

for PLATFORM in $PLATFORMS; do
Expand All @@ -26,18 +26,18 @@ for PLATFORM in $PLATFORMS; do
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
done

# ARM builds
PLATFORMS_ARM="linux freebsd netbsd"
for GOOS in $PLATFORMS_ARM; do
GOARCH="arm"
# build for each ARM version
for GOARM in 7 6 5; do
BIN_FILENAME="${OUTPUT_DIR}/${NAME}-${GOOS}-${GOARCH}${GOARM}"
CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \"-s -w -extldflags '-static'\" -o ${BIN_FILENAME} $@"
echo "${CMD}"
eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
done
done
## ARM builds
#PLATFORMS_ARM="linux freebsd netbsd"
#for GOOS in $PLATFORMS_ARM; do
# GOARCH="arm"
# # build for each ARM version
# for GOARM in 7 6 5; do
# BIN_FILENAME="${OUTPUT_DIR}/${NAME}-${GOOS}-${GOARCH}${GOARM}"
# CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -v -ldflags \"-s -w -extldflags '-static'\" -o ${BIN_FILENAME} $@"
# echo "${CMD}"
# eval "${CMD}" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}"
# done
#done

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

0 comments on commit 5531a3f

Please sign in to comment.