Publish HTML quickly. https://html.house
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.
 
 
 
 

35 lines
672 B

  1. #!/bin/bash
  2. #
  3. # Compile the application and put it all in one place.
  4. # NOTE: also requires generated keys to run.
  5. #
  6. L="\033[0;35m==\033[00m"
  7. S="\033[0;32m==\033[00m"
  8. echo -e "$L Cleaning up previous build..."
  9. rm -rf build
  10. echo -e "$L Creating directories..."
  11. mkdir -p build/static/css/
  12. mkdir -p build/static/js/
  13. echo -e "$L Generating CSS..."
  14. make
  15. echo -e "$L Copying files..."
  16. cp static/*.html build/static/
  17. cp static/css/*.css build/static/css/
  18. cp -r static/js/* build/static/js/
  19. cp -r templates/ build/
  20. cp keys.sh build/
  21. cp INSTALL build/
  22. echo -e "$L Building application..."
  23. cd cmd/htmlhouse/
  24. go build -o htmlhouse
  25. mv htmlhouse ../../build/
  26. echo -e "$S Done."