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
910 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/*.html $DES/
  13. cp ./platform/chromium/*.js $DES/js/
  14. cp -R ./platform/chromium/img/* $DES/img/
  15. cp ./platform/chromium/manifest.json $DES/
  16. cp LICENSE.txt $DES/
  17. echo "*** uMatrix.chromium: Generating meta..."
  18. python tools/make-chromium-meta.py $DES/
  19. if [ "$1" = all ]; then
  20. echo "*** uMatrix.chromium: Creating package..."
  21. pushd $(dirname $DES/)
  22. zip uMatrix.chromium.zip -qr $(basename $DES/)/*
  23. popd
  24. fi
  25. echo "*** uMatrix(Chromium): Package done."