Browse Source

build: add mips64 and mips64le

pull/88/head
fatedier 8 years ago
parent
commit
603d7df49a
  1. 8
      Makefile.cross-compiles
  2. 2
      package.sh

8
Makefile.cross-compiles

@ -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

2
package.sh

@ -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

Loading…
Cancel
Save