|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
#!/usr/bin/env bash |
|
|
|
outPlattform=freebsd |
|
|
|
outPlattform=freebsd |
|
|
|
outArch=amd64 |
|
|
|
outArch=amd64 |
|
|
|
outPath=./output_$outPlattform_$outArch |
|
|
|
outPath=./output_$outPlattform_$outArch |
|
|
@ -5,7 +6,7 @@ outPath=./output_$outPlattform_$outArch |
|
|
|
rm -rf $outPath |
|
|
|
rm -rf $outPath |
|
|
|
mkdir $outPath |
|
|
|
mkdir $outPath |
|
|
|
|
|
|
|
|
|
|
|
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go |
|
|
|
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go -o gitea |
|
|
|
chmod +x gogs |
|
|
|
chmod +x gogs |
|
|
|
mv gogs $outPath/ |
|
|
|
mv gogs $outPath/ |
|
|
|
|
|
|
|
|
|
|
@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/ |
|
|
|
cp start.bat $outPath/ |
|
|
|
cp start.bat $outPath/ |
|
|
|
cp start.sh $outPath/ |
|
|
|
cp start.sh $outPath/ |
|
|
|
cp ../wercker.yml $outPath/ |
|
|
|
cp ../wercker.yml $outPath/ |
|
|
|
cp mysql.sql $outPath/ |
|
|
|
cp mysql.sql $outPath/ |
|
|
|