Change project structure for cross build

This commit is contained in:
Synthasmagoria 2026-09-01 14:12:06 +02:00
commit 80b3e83d4d
17 changed files with 44 additions and 43 deletions

View file

@ -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: <script> <DEBUG/RELEASE>"
exit 1
@ -19,6 +19,6 @@ else
fi
mkdir -p $OUT_DIR
odin build src/ -out:"$OUT_DIR/$EXE_NAME" $ODIN_FLAGS
odin build src/desktop -out:"$OUT_DIR/$EXE_NAME" $ODIN_FLAGS
cp -R $ASSETS_DIR ./$OUT_DIR/
echo "Desktop build created in ${OUT_DIR}"