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.

24 lines
528 B

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