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.

28 lines
836 B

10 years ago
10 years ago
  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** µMatrix(Chromium): Creating package"
  5. echo "*** µMatrix(Chromium): Copying files"
  6. DES=./dist/build/uMatrix.chromium
  7. rm -rf $DES
  8. mkdir -p $DES
  9. cp -R ./assets $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. if [ "$1" = all ]; then
  18. echo "*** µMatrix.chromium: Creating package..."
  19. pushd $(dirname $DES/)
  20. zip uMatrix.chromium.zip -qr $(basename $DES/)/*
  21. popd
  22. fi
  23. echo "*** µMatrix(Chromium): Package done."