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.

36 lines
1.1 KiB

10 years ago
  1. #!/bin/bash
  2. #
  3. # This script assumes a linux environment
  4. echo "*** nuTensor(Chromium): Creating package"
  5. echo "*** nuTensor(Chromium): Copying files"
  6. DES=./dist/build/nuTensor.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 "*** nuTensor.chromium: Generating meta..."
  17. python3 tools/make-chromium-meta.py $DES/
  18. if [ "$1" = all ]; then
  19. echo "*** nuTensor.chromium: Creating package..."
  20. pushd $(dirname $DES/)
  21. zip nuTensor.chromium.zip -qr $(basename $DES/)/*
  22. popd
  23. elif [ -n "$1" ]; then
  24. echo "*** nuTensor.chromium: Creating versioned package..."
  25. pushd $(dirname $DES/) > /dev/null
  26. zip nuTensor_"$1".chromium.zip -qr $(basename $DES/)/*
  27. popd > /dev/null
  28. fi
  29. echo "*** nuTensor(Chromium): Package done."