Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Jan 1, 2024
1 parent f5ef0f9 commit 06c6ed8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 06c6ed8

Please sign in to comment.