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.

37 lines
842 B

10 years ago
  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** uBlock.firefox: Copying files"
  5. DES=dist/build/uBlock.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 platform/firefox/chrome.manifest $DES/
  21. cp platform/firefox/install.rdf $DES/
  22. cp LICENSE.txt $DES/
  23. echo "*** uBlock.firefox: Generating meta..."
  24. python tools/make-firefox-meta.py $DES/
  25. if [ "$1" = all ]; then
  26. echo "*** uBlock.firefox: Creating package..."
  27. pushd $DES/
  28. zip ../uBlock.firefox.xpi -qr *
  29. popd
  30. fi
  31. echo "*** uBlock.firefox: Package done."