Browse Source

尝试交叉编译

Minho 8 năm trước cách đây
mục cha
commit
d067bd6124
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      start.sh

+ 6 - 1
start.sh

@@ -36,5 +36,10 @@ if [ ! -z $HTTP_PORT] ; then
     sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf
 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