build.sh 558 B

123456789101112131415
  1. #!/bin/bash
  2. TARGET="/opt/cunnyborea" # Where pleroma’s repository is sitting
  3. yarn install -D
  4. rm -rf dist/*
  5. npm run build
  6. rsync -ra public/ "${TARGET}/instance/static"
  7. cp dist/index.html "${TARGET}/instance/static/index.html"
  8. rsync --delete -ra dist/static/ "${TARGET}/instance/static/static"
  9. rsync --delete -ra images/ "${TARGET}/instance/static/images"
  10. rsync --delete -ra sounds/ "${TARGET}/instance/static/sounds"
  11. rsync -ra instance/ "${TARGET}/instance/static/instance"
  12. rsync --delete -ra static/favicon.png "${TARGET}/instance/static/favicon.png"