You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.sh 776 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. outPath=./output
  3. rm -rf $outPath
  4. mkdir $outPath
  5. go build ../main.go -o gitea
  6. PLATFORM=`uname | cut -d _ -f 1`
  7. if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
  8. GOGS_EXE=gogs.exe
  9. else
  10. GOGS_EXE=gogs
  11. fi
  12. chmod +x $GOGS_EXE
  13. mv $GOGS_EXE $outPath/
  14. cp -r ../conf/ $outPath/conf/
  15. cp -r ../custom/ $outPath/custom/
  16. cp -r dockerfiles/ $outPath/dockerfiles/
  17. cp -r ../public/ $outPath/public/
  18. cp -r ../templates/ $outPath/templates/
  19. cp ../cert.pem $outPath/
  20. cp ../CONTRIBUTING.md $outPath/
  21. cp gogs_supervisord.sh $outPath/
  22. cp ../key.pem $outPath/
  23. cp ../LICENSE $outPath/
  24. cp ../README.md $outPath/
  25. cp ../README_ZH.md $outPath/
  26. cp start.bat $outPath/
  27. cp start.sh $outPath/
  28. cp ../wercker.yml $outPath/
  29. cp mysql.sql $outPath/