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.

39 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 "*** nuTensor.opera: Creating package"
  5. echo "*** nuTensor.opera: Copying files"
  6. DES=./dist/build/nuTensor.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/*.js $DES/js/
  12. cp -R ./platform/chromium/img/* $DES/img/
  13. cp ./platform/chromium/manifest.json $DES/
  14. cp LICENSE.txt $DES/
  15. # Copy only locales with fully translated description
  16. rm -rf $DES/_locales
  17. mkdir -p $DES/_locales
  18. cp -R ./src/_locales/de $DES/_locales/
  19. cp -R ./src/_locales/en $DES/_locales/
  20. cp -R ./src/_locales/es $DES/_locales/
  21. cp -R ./src/_locales/fr $DES/_locales/
  22. cp -R ./src/_locales/he $DES/_locales/
  23. cp -R ./src/_locales/id $DES/_locales/
  24. cp -R ./src/_locales/it $DES/_locales/
  25. cp -R ./src/_locales/nl $DES/_locales/
  26. cp -R ./src/_locales/pt_BR $DES/_locales/
  27. cp -R ./src/_locales/pt_PT $DES/_locales/
  28. cp -R ./src/_locales/tr $DES/_locales/
  29. cp -R ./src/_locales/zh_TW $DES/_locales/
  30. echo "*** nuTensor.opera: Generating meta..."
  31. python3 tools/make-opera-meta.py $DES/
  32. echo "*** nuTensor.opera: Package done."