From 80b3e83d4dcd5adf48f6a349f9158118dc83b31c Mon Sep 17 00:00:00 2001 From: Synthasmagoria Date: Tue, 1 Sep 2026 14:12:06 +0200 Subject: [PATCH] Change project structure for cross build --- build_desktop.sh | 4 ++-- build_web.sh | 10 ++++----- default | Bin 238 -> 166 bytes src/animation.odin | 2 +- src/desktop/main.odin | 19 ++++++++++++++++++ src/grid.odin | 2 +- src/main.odin | 2 +- src/main_desktop.odin | 18 ----------------- src/program.odin | 4 ++-- src/project.odin | 2 +- src/project_default.odin | 2 +- src/project_web.odin | 2 +- src/utils.odin | 2 +- src/utils_default.odin | 2 +- src/utils_web.odin | 2 +- .../web/index_template.html | 1 + src/{main_web.odin => web/main.odin} | 13 ++++++------ 17 files changed, 44 insertions(+), 43 deletions(-) create mode 100644 src/desktop/main.odin delete mode 100644 src/main_desktop.odin rename index_template.html => src/web/index_template.html (99%) rename src/{main_web.odin => web/main.odin} (97%) diff --git a/build_desktop.sh b/build_desktop.sh index b0fa03a..7f92bb5 100755 --- a/build_desktop.sh +++ b/build_desktop.sh @@ -8,7 +8,7 @@ if [[ -v 1 ]]; then if [ "$1" = "DEBUG" ]; then ODIN_FLAGS="-debug" elif [ "$1" = "RELEASE" ]; then - ODIN_FLAGS="-o:minimal" + ODIN_FLAGS="-o:speed" else echo "Usage: