From 06c6ed8d4a6f2885c5065b4fe13428f13472f874 Mon Sep 17 00:00:00 2001 From: florianvazelle Date: Mon, 1 Jan 2024 15:35:49 +0100 Subject: [PATCH] wip --- Justfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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: