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.

23 lines
512 B

  1. #!/bin/bash
  2. release_dir=../XRay-library-release
  3. current=`pwd`
  4. composer install --no-dev
  5. rsync -ap --delete controllers $release_dir/
  6. rsync -ap --delete lib $release_dir/
  7. rsync -ap --delete public $release_dir/
  8. rsync -ap --delete views $release_dir/
  9. rsync -ap --delete --exclude=.git vendor $release_dir/
  10. cp README.md $release_dir/
  11. cp LICENSE.txt $release_dir/
  12. cp index.php $release_dir/
  13. cp .htaccess $release_dir/
  14. cp controllers/.htaccess $release_dir/vendor/
  15. cd $release_dir
  16. zip -r xray.zip .
  17. cd $current