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.

42 lines
1.0 KiB

10 years ago
  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** uMatrix.firefox: Copying files"
  5. DES=dist/build/uMatrix.firefox
  6. rm -rf $DES
  7. mkdir -p $DES
  8. cp -R assets $DES/
  9. cp -R src/* $DES/
  10. mv $DES/img/icon_128.png $DES/icon.png
  11. cp platform/firefox/css/* $DES/css/
  12. cp platform/firefox/polyfill.js $DES/js/
  13. cp platform/firefox/vapi-*.js $DES/js/
  14. cp platform/firefox/bootstrap.js $DES/
  15. cp platform/firefox/frame*.js $DES/
  16. cp -R platform/chromium/img $DES/
  17. cp platform/firefox/chrome.manifest $DES/
  18. cp platform/firefox/install.rdf $DES/
  19. cp platform/firefox/*.xul $DES/
  20. cp LICENSE.txt $DES/
  21. echo "*** uMatrix.firefox: Generating meta..."
  22. python tools/make-firefox-meta.py $DES/
  23. if [ "$1" = all ]; then
  24. echo "*** uMatrix.firefox: Creating package..."
  25. pushd $DES/
  26. zip ../uMatrix.firefox.xpi -qr *
  27. popd
  28. fi
  29. echo "*** uMatrix.firefox: Package done."