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.

41 lines
1010 B

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/vapi-*.js $DES/js/
  13. cp platform/firefox/bootstrap.js $DES/
  14. cp platform/firefox/frame*.js $DES/
  15. cp -R platform/chromium/img $DES/
  16. cp platform/firefox/chrome.manifest $DES/
  17. cp platform/firefox/install.rdf $DES/
  18. cp platform/firefox/*.xul $DES/
  19. cp LICENSE.txt $DES/
  20. echo "*** uMatrix.firefox: Generating meta..."
  21. python tools/make-firefox-meta.py $DES/ "$2"
  22. if [ "$1" = all ]; then
  23. echo "*** uMatrix.firefox: Creating package..."
  24. pushd $DES/
  25. zip ../uMatrix.firefox.xpi -qr *
  26. popd
  27. fi
  28. echo "*** uMatrix.firefox: Package done."