release.sh 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # /bin/sh
  2. # Create a dist version of the system
  3. cd ../
  4. # Update license before pack
  5. go-licenses report imuslab.com/zoraxy > system/gomod-license.csv
  6. # Build release distribution
  7. make
  8. # Create and prepare for a Github release style folder structure
  9. rm -rf ./build/github/src
  10. mkdir ./build/github
  11. mkdir ./build/github/src
  12. # Extract the web.tar.gz to src folder
  13. tar -xvf ./dist/web.tar.gz -C ./build/github/src
  14. # Copy the mod folder and all root go files
  15. cp -r ./mod ./build/github/src
  16. cp ./*.go ./build/github/src
  17. # Copy other important files
  18. cp Makefile ./build/github/src
  19. cp start.sh ./build/github/src
  20. cp go.mod ./build/github/src
  21. cp go.sum ./build/github/src
  22. # Generate the doc folder for important docs
  23. cp README.md ./build/github/src
  24. # Back to the build folder
  25. cd ./build
  26. echo "Github Release Structure Created"