diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-10-10 11:29:09 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-10-10 11:29:09 +0200 |
| commit | 7cb810089144d42d202e0b267235174d7869c5aa (patch) | |
| tree | 579008fbb822bc78412e3604909e94a4711cfeaf /code/build.sh | |
| parent | 732e6a47ded496cd224e1cfadc2106b04dcf6859 (diff) | |
checkpoint
Diffstat (limited to 'code/build.sh')
| -rwxr-xr-x | code/build.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/code/build.sh b/code/build.sh index dd02a94..f892d39 100755 --- a/code/build.sh +++ b/code/build.sh @@ -26,6 +26,7 @@ WarningFlags=" -Wno-unused-parameter -Wno-unused-function -Wno-null-dereference +-Wno-missing-braces " WasmCompilerFlags=" @@ -60,13 +61,13 @@ then " fi -printf 'game.c\n' +printf 'game.cpp\n' clang \ $CompilerFlags \ $WasmCompilerFlags $WasmLinkerFlags \ $WarningFlags \ -o ../build/game.wasm \ - game.c + game.cpp printf 'index.html platform.js favicon.ico\n' ln -f index.html platform.js ../build cp ../data/favicon.ico ../build @@ -83,4 +84,10 @@ then ws.c fi +if [ -s "../build/font.c" ] +then + printf 'font.ttf\n' + xxd -i -n "data_font_ttf" ../data/font.ttf > ../build/font.c +fi + printf '%s\n' "update" | websocat 'ws://localhost:1234/' |
