build_linux64.sh 755 B

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