1
0

release.sh 1.2 KB

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