From ae269b1bfc19cdbeea6cba88091e5d21c2e87675 Mon Sep 17 00:00:00 2001 From: agra Date: Mon, 2 Mar 2026 20:46:06 +0200 Subject: [PATCH] ... --- .firebaserc | 5 +++++ .gitignore | 4 +++- firebase.json | 16 ++++++++++++++++ main.sx | 8 +------- 4 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 .firebaserc create mode 100644 firebase.json diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..bbb89a4 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "co-swipelab-game" + } +} diff --git a/.gitignore b/.gitignore index 828cb9a..80102c8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ modules/ .sx-cache -sx-out/ \ No newline at end of file +.sx-tmp/ +sx-out/ +.firebase/ \ No newline at end of file diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..8ffb4bb --- /dev/null +++ b/firebase.json @@ -0,0 +1,16 @@ +{ + "hosting": { + "public": "sx-out/wasm32", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} diff --git a/main.sx b/main.sx index 5ce92ce..dbf8cac 100644 --- a/main.sx +++ b/main.sx @@ -10,14 +10,8 @@ configure_build :: () { opts := build_options(); inline if OS == { - case .wasm: { - inline if POINTER_SIZE == 4 { - opts.set_output_path("sx-out/wasm32/game.html"); - } else { - opts.set_output_path("sx-out/wasm64/game.html"); - } - + opts.set_output_path(if POINTER_SIZE == 4 then "sx-out/wasm32/index.html" else "sx-out/wasm32/index.html"); opts.add_link_flag("-sUSE_SDL=3"); opts.add_link_flag("-sMAX_WEBGL_VERSION=2"); opts.add_link_flag("-sFULL_ES3=1");