build: add mips64 and mips64le

This commit is contained in:
fatedier 2016-08-21 00:07:25 +08:00
parent 46ee2f2bc8
commit 603d7df49a
2 changed files with 8 additions and 2 deletions

View File

@ -3,10 +3,16 @@ export GO15VENDOREXPERIMENT := 1
all: build all: build
build: gox app build: gox app more
gox: gox:
go get github.com/mitchellh/gox go get github.com/mitchellh/gox
app: app:
gox -osarch "darwin/386 darwin/amd64 linux/386 linux/amd64 linux/arm windows/386 windows/amd64" ./src/... gox -osarch "darwin/386 darwin/amd64 linux/386 linux/amd64 linux/arm windows/386 windows/amd64" ./src/...
more:
env GOOS=linux GOARCH=mips64 go build -o ./frpc_linux_mips64 ./src/cmd/frpc
env GOOS=linux GOARCH=mips64 go build -o ./frps_linux_mips64 ./src/cmd/frps
env GOOS=linux GOARCH=mips64le go build -o ./frpc_linux_mips64le ./src/cmd/frpc
env GOOS=linux GOARCH=mips64le go build -o ./frps_linux_mips64le ./src/cmd/frps

View File

@ -15,7 +15,7 @@ rm -rf ./packages
mkdir ./packages mkdir ./packages
os_all='linux windows darwin' os_all='linux windows darwin'
arch_all='386 amd64 arm' arch_all='386 amd64 arm mips64 mips64le'
for os in $os_all; do for os in $os_all; do
for arch in $arch_all; do for arch in $arch_all; do