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

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