Skip to content

Commit

Permalink
build: add mips64 and mips64le
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Aug 20, 2016
1 parent 46ee2f2 commit 603d7df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Makefile.cross-compiles
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ export GO15VENDOREXPERIMENT := 1

all: build

build: gox app
build: gox app more

gox:
go get github.com/mitchellh/gox

app:
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
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rm -rf ./packages
mkdir ./packages

os_all='linux windows darwin'
arch_all='386 amd64 arm'
arch_all='386 amd64 arm mips64 mips64le'

for os in $os_all; do
for arch in $arch_all; do
Expand Down

0 comments on commit 603d7df

Please sign in to comment.