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
926 B

  1. #!/usr/bin/env bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** uMatrix.firefox: Creating web store package"
  5. echo "*** uMatrix.firefox: Copying files"
  6. DES=dist/build/uMatrix.firefox
  7. rm -rf $DES
  8. mkdir -p $DES
  9. bash ./tools/make-assets.sh $DES
  10. cp -R ./src/* $DES/
  11. cp platform/chromium/*.js $DES/js/
  12. cp -R platform/chromium/img/* $DES/img/
  13. cp LICENSE.txt $DES/
  14. cp platform/firefox/polyfill.js $DES/js/
  15. cp platform/firefox/vapi-cachestorage.js $DES/js/
  16. cp platform/firefox/manifest.json $DES/
  17. echo "*** uMatrix.firefox: Generating meta..."
  18. python tools/make-firefox-meta.py $DES/
  19. if [ "$1" = all ]; then
  20. echo "*** uMatrix.firefox: Creating package..."
  21. pushd $DES > /dev/null
  22. zip ../$(basename $DES).xpi -qr *
  23. popd > /dev/null
  24. fi
  25. echo "*** uMatrix.firefox: Package done."