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.

31 lines
720 B

  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** uBlock_xpi: Copying files"
  5. # use underscore instead of a dot!
  6. DES=dist/build/uBlock_xpi
  7. rm -r $DES
  8. mkdir -p $DES
  9. cp -R assets $DES/
  10. rm $DES/assets/*.sh
  11. cp -R src/css $DES/
  12. cp -R src/img $DES/
  13. cp -R src/js $DES/
  14. cp -R src/lib $DES/
  15. cp -R src/_locales $DES/
  16. cp src/*.html $DES/
  17. mv $DES/img/icon_128.png $DES/icon.png
  18. cp platform/firefox/vapi-*.js $DES/js/
  19. cp platform/firefox/bootstrap.js $DES/
  20. cp platform/firefox/frame*.js $DES/
  21. cp platform/firefox/chrome.manifest $DES/
  22. cp platform/firefox/install.rdf $DES/
  23. cp LICENSE.txt $DES/
  24. echo "*** uBlock_xpi: Generating meta..."
  25. python tools/make-firefox-meta.py $DES/
  26. echo "*** uBlock_xpi: Package done."