mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-05-07 23:27:48 +08:00
尝试交叉编译
This commit is contained in:
parent
d02aad28b9
commit
d067bd6124
7
start.sh
7
start.sh
@ -36,5 +36,10 @@ if [ ! -z $HTTP_PORT] ; then
|
|||||||
sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf
|
sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for GOOS in darwin linux windows; do
|
||||||
|
for GOARCH in 386 amd64; do
|
||||||
|
go build -v -o godoc-$GOOS-$GOARCH
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
/go/src/github.com/lifei6671/godoc/godoc
|
/go/src/github.com/lifei6671/godoc/godoc-linux-amd64
|
Loading…
Reference in New Issue
Block a user