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.

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