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.

31 lines
991 B

  1. #!/usr/bin/env bash
  2. #
  3. # This script assumes a linux environment
  4. DES=$1/assets
  5. printf "*** Packaging assets in $DES... "
  6. rm -rf $DES
  7. mkdir $DES
  8. cp ./assets/assets.json $DES/
  9. if [ -n "${TRAVIS_TAG}" ]; then
  10. pushd .. > /dev/null
  11. git clone --depth 1 https://github.com/geekprojects/nuAssets.git
  12. popd > /dev/null
  13. fi
  14. mkdir $DES/thirdparties
  15. cp -R ../nuAssets/thirdparties/hosts-file.net $DES/thirdparties/
  16. cp -R ../nuAssets/thirdparties/mirror1.malwaredomains.com $DES/thirdparties/
  17. cp -R ../nuAssets/thirdparties/pgl.yoyo.org $DES/thirdparties/
  18. cp -R ../nuAssets/thirdparties/publicsuffix.org $DES/thirdparties/
  19. cp -R ../nuAssets/thirdparties/someonewhocares.org $DES/thirdparties/
  20. cp -R ../nuAssets/thirdparties/winhelp2002.mvps.org $DES/thirdparties/
  21. cp -R ../nuAssets/thirdparties/www.malwaredomainlist.com $DES/thirdparties/
  22. mkdir $DES/umatrix
  23. cp -R ../nuAssets/recipes/* $DES/umatrix/
  24. echo "done."