Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能在发布版本是顺便发布mips和mipsle的二进制程序? #55

Open
yuhuan21 opened this issue Mar 5, 2018 · 2 comments
Open

Comments

@yuhuan21
Copy link

yuhuan21 commented Mar 5, 2018

我用的是mt7621的路由器来运行客户端,因为据说国产软件会上传IP地址给404,但是小弟技术有限,不能自己编译客户端,希望作者能在发布编译程序的时候,顺便把路由器的二进制程序也编译一下,谢谢.

@hiboyhiboy
Copy link

apt-get install golang-go git

cd /opt
git clone https://github.com/gomini/go-mips32.git
cd /opt/go-mips32/src

export CGO_ENABLED=0
export GOOS=linux 
export GOARCH=mips32le
./make.bash --no-clean


cd /opt/
wget https://github.com/golang/go/archive/go1.9.5.tar.gz
tar xf go1.9.5.tar.gz
cd /opt/go-go1.9.5/src
export GOROOT_BOOTSTRAP=/opt/go-mips32
export CGO_ENABLED=0
export GOOS=linux 
export GOARCH=mipsle
./make.bash --no-clean


export GOOS=linux 
export GOARCH=mipsle
export GOROOT=/opt/go-go1.9.5
export PATH=/opt/go-go1.9.5/bin:$PATH
export GOPATH=/root/go
mkdir -p /root/go
cd /root/
git clone -b gdev https://github.com/coyove/goflyway.git
cd /root/goflyway
git reset --hard
git pull
NAME=goflyway
SOURCE=./cmd/goflyway/main.go
LIST=chinalist.txt
VERSION=$(date +%y%m%d%H%M%S)
rm -f ./build/goflyway_linux_mipsle/*
mkdir -p ./build/goflyway_linux_mipsle
sed -Ei  's/__devel__/'$VERSION'/g' $SOURCE
sed -Ei  's/func main\(\) \{/func main() \{    fmt.Println\("goflyway \(build " + version + "\)"\)/g' $SOURCE
go build -o ./build/goflyway_linux_mipsle/goflyway ./cmd/goflyway
sed -Ei  's/'$VERSION'/__devel__/g' $SOURCE
cp  -t ./build/goflyway_linux_mipsle/ ./$LIST
#cd /build/goflyway_linux_mipsle/

@suneye0127
Copy link

hi, hiboy
能否有bcm4708的arm架构的重新编译流程?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants