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.

39 lines
913 B

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