build_freebsd.sh 677 B

123456789101112131415161718192021222324252627
  1. outPlattform=freebsd
  2. outArch=amd64
  3. outPath=./output_$outPlattform_$outArch
  4. rm -rf $outPath
  5. mkdir $outPath
  6. CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
  7. chmod +x gogs
  8. mv gogs $outPath/
  9. cp -r ../conf/ $outPath/conf/
  10. cp -r ../custom/ $outPath/custom/
  11. cp -r dockerfiles/ $outPath/dockerfiles/
  12. cp -r ../public/ $outPath/public/
  13. cp -r ../templates/ $outPath/templates/
  14. cp ../cert.pem $outPath/
  15. cp ../CONTRIBUTING.md $outPath/
  16. cp gogs_supervisord.sh $outPath/
  17. cp ../key.pem $outPath/
  18. cp ../LICENSE $outPath/
  19. cp ../README.md $outPath/
  20. cp ../README_ZH.md $outPath/
  21. cp start.bat $outPath/
  22. cp start.sh $outPath/
  23. cp ../wercker.yml $outPath/
  24. cp mysql.sql $outPath/