diff --git a/Justfile b/Justfile index 1278e9e..8a3576b 100644 --- a/Justfile +++ b/Justfile @@ -96,10 +96,19 @@ install-templates: install-addons: [ -f plug.gd ] && just godot --headless --script plug.gd install force || true +monitor-import: + #!/bin/sh + while [ "$(printf "%.0f\n" $(top -n 1 -b | awk '/^%Cpu/{print $2}'))" -gt 10 ]; + do + echo "$(top -n 1 -b | awk '/^%Cpu/{print $2}')"; + done + echo "Finished importing. Killing godot editor process"; + kill $(pgrep -o godot) + # Workaround from https://github.com/godotengine/godot/pull/68461 # Import game resources import-resources: - timeout 60 just godot --editor --headless || true + just godot --editor --headless & sleep 5 && just monitor-import # Updates the game version for export @bump-version: