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.

32 lines
873 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/*.js $DES/js/
  15. cp platform/firefox/manifest.json $DES/
  16. echo "*** uMatrix.firefox: Generating meta..."
  17. python tools/make-firefox-meta.py $DES/
  18. if [ "$1" = all ]; then
  19. echo "*** uMatrix.firefox: Creating package..."
  20. pushd $DES > /dev/null
  21. zip ../$(basename $DES).xpi -qr *
  22. popd > /dev/null
  23. fi
  24. echo "*** uMatrix.firefox: Package done."