not quite yet working live reload

This commit is contained in:
2025-03-13 00:52:35 +02:00
parent d2fcb9a24a
commit ab18ed1d4a
4 changed files with 58 additions and 25 deletions

10
live-reloader.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
echo "Watching changes in hiisi..."
while true; do
inotifywait -e modify build/hiisi/libhiisi-engine.so
echo "$(date \"%H:%M:%S\") - Hiisi changed!"
HIISI_PID=$(pgrep -x hiisi-run)
kill -USR1 "${HIISI_PID}" && echo "Signal sent!" || echo "Signal send failed!"
done