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

26 lines
675 B

10 years ago
  1. outPlattform=linux
  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/