build.sh automatically builds on changes

This commit is contained in:
2025-11-05 09:10:49 +01:00
parent 1cda4d05b3
commit dfc2a0668c

9
build.sh Executable file
View File

@@ -0,0 +1,9 @@
find src | entr -c sh -c 'echo "\n\n\n\n" ; zig build test 2>&1 | cat; echo "\n\n\n" ; date'
# build exe for windows
# doesn't work anymore, because I added the version number as module "config" to the
# root_module. In main,zig we import the module. This only works when building
# using the build.zig file, but not when building without a build file.
#zig build-exe src/main.zig -O ReleaseSmall -fstrip -fsingle-threaded -target x86_64-windows
zig build && ./zig-out/bin/zig-totp list