Skip to content

Commit

Permalink
support for loong64/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Oct 1, 2024
1 parent 5e54ec6 commit fd6cbb6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ VERSION=`date -u +%Y%m%d`
LDFLAGS="-X main.VERSION=$VERSION -s -w"
GCFLAGS=""

# LOONG64
OSES=(linux)
for os in ${OSES[@]}; do
env CGO_ENABLED=0 GOOS=$os GOARCH=loong64 go build -mod=vendor -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" -o client_${os}_loong64${suffix} github.com/xtaci/kcptun/client
env CGO_ENABLED=0 GOOS=$os GOARCH=loong64 go build -mod=vendor -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" -o server_${os}_loong64${suffix} github.com/xtaci/kcptun/server
if $UPX; then upx -9 client_${os}_loong64${suffix} server_${os}_loong64${suffix};fi
tar -zcf kcptun-${os}-loong64-$VERSION.tar.gz client_${os}_loong64${suffix} server_${os}_loong64${suffix}
$sum kcptun-${os}-loong64-$VERSION.tar.gz
done

# AMD64
OSES=(linux darwin windows freebsd)
for os in ${OSES[@]}; do
Expand Down

0 comments on commit fd6cbb6

Please sign in to comment.