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.

40 lines
1.2 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** uMatrix.opera: Creating package"
  5. echo "*** uMatrix.opera: Copying files"
  6. DES=./dist/build/uMatrix.opera
  7. rm -r $DES
  8. mkdir -p $DES
  9. bash ./tools/make-assets.sh $DES
  10. cp -R ./src/* $DES/
  11. cp ./platform/chromium/*.html $DES/
  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. # Copy only locales with fully translated description
  17. rm -rf $DES/_locales
  18. mkdir -p $DES/_locales
  19. cp -R ./src/_locales/de $DES/_locales/
  20. cp -R ./src/_locales/en $DES/_locales/
  21. cp -R ./src/_locales/es $DES/_locales/
  22. cp -R ./src/_locales/fr $DES/_locales/
  23. cp -R ./src/_locales/he $DES/_locales/
  24. cp -R ./src/_locales/id $DES/_locales/
  25. cp -R ./src/_locales/it $DES/_locales/
  26. cp -R ./src/_locales/nl $DES/_locales/
  27. cp -R ./src/_locales/pt_BR $DES/_locales/
  28. cp -R ./src/_locales/pt_PT $DES/_locales/
  29. cp -R ./src/_locales/tr $DES/_locales/
  30. cp -R ./src/_locales/zh_TW $DES/_locales/
  31. echo "*** uMatrix.opera: Generating meta..."
  32. python tools/make-opera-meta.py $DES/
  33. echo "*** uMatrix.opera: Package done."