rebuild_play.sh 402 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Convenience script to rebuild the gdio crate and start the Godot editor using
  3. # the newly rebuilt version.
  4. if [ -z "$GD_EDITOR" ]; then
  5. echo 'GD_EDITOR unset, set it to the path of the Godot editor binary'
  6. exit 1
  7. fi
  8. CD_PATH=$(dirname $(dirname $(realpath $0)))
  9. set -e -x
  10. pushd $CD_PATH/gdio/
  11. cargo build
  12. popd
  13. $GD_EDITOR -w --resolution 1920x1080 $CD_PATH/game/project.godot