24 lines
587 B
Bash
Executable File
24 lines
587 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# pdb won't be usable with entr,
|
|
# use https://pypi.org/project/remote-pdb/ instead.
|
|
|
|
# An argument can be given to specify which QML file in src/qml to load.
|
|
# If no argument is given, the default is "UI.qml".
|
|
|
|
# The no_embedded CONFIG option (resources) is used to speed up the compilation
|
|
|
|
export QT_QPA_PLATFORM=xcb
|
|
|
|
CFG='dev no_embedded'
|
|
|
|
make clean
|
|
qmake harmonyqml.pro CONFIG+="$CFG" && make
|
|
|
|
while true; do
|
|
find src harmonyqml.pro -type f |
|
|
entr -cdnr sh -c \
|
|
"qmake harmonyqml.pro CONFIG+='$CFG' && make && ./harmonyqml $*"
|
|
sleep 0.2
|
|
done
|