parent
deb22f8df1
commit
1da1d4c1f7
4
make.sh
4
make.sh
|
@ -22,9 +22,9 @@ for PLATFORM in $PLATFORMS; do
|
||||||
sh -c "cd ${DIST} && tar -czf ${PROJ}-${VERSION}-${GOOS}-${GOARCH}.tar.gz ${BIN_FILENAME} && rm ${BIN_FILENAME}"
|
sh -c "cd ${DIST} && tar -czf ${PROJ}-${VERSION}-${GOOS}-${GOARCH}.tar.gz ${BIN_FILENAME} && rm ${BIN_FILENAME}"
|
||||||
|
|
||||||
# build netgo ver
|
# build netgo ver
|
||||||
CMD="GOOS=${GOOS} GOARCH=${GOARCH} go build -tags netgo ${LDFLAGS} -o ${DIST}/${BIN_FILENAME} cmd/gterm/main.go"
|
CMD="CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build ${LDFLAGS} -o ${DIST}/${BIN_FILENAME} cmd/gterm/main.go"
|
||||||
eval $CMD
|
eval $CMD
|
||||||
sh -c "cd ${DIST} && tar -czf ${PROJ}-${VERSION}-${GOOS}-${GOARCH}-netgo.tar.gz ${BIN_FILENAME} && rm ${BIN_FILENAME}"
|
sh -c "cd ${DIST} && tar -czf ${PROJ}-${VERSION}-${GOOS}-${GOARCH}-nocgo.tar.gz ${BIN_FILENAME} && rm ${BIN_FILENAME}"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue