added tinyfiledialogs as a submodule & updated the build scripts for linux/mac

This commit is contained in:
Stefan Stefanov 2024-04-22 10:07:02 +03:00
parent 04a472874d
commit 3dc7d72a50
6 changed files with 16 additions and 7 deletions

0
scripts/build_debug.sh Normal file → Executable file
View file

4
scripts/build_hot_reload.sh Normal file → Executable file
View file

@ -36,10 +36,10 @@ case $(uname) in
esac
# Build the game.
odin build . -use-separate-modules -extra-linker-flags:"$EXTRA_LINKER_FLAGS" -show-timings -define:RAYLIB_SHARED=true -build-mode:dll -out:build/game_tmp$DLL_EXT -debug $VET
odin build src -use-separate-modules -extra-linker-flags:"$EXTRA_LINKER_FLAGS" -show-timings -define:RAYLIB_SHARED=true -build-mode:dll -out:build/game_tmp$DLL_EXT -debug $VET
# Need to use a temp file on Linux because it first writes an empty `game.so`, which the game will load before it is actually fully written.
mv game_tmp$DLL_EXT game$DLL_EXT
mv ./build/game_tmp$DLL_EXT ./build/game$DLL_EXT
# Do not build the game.bin if it is already running.
if ! pgrep game.bin > /dev/null; then