From 5356fa9929a76724d3adb6dc6012efe62354024e Mon Sep 17 00:00:00 2001 From: Justin Olbrantz Date: Thu, 21 May 2026 16:59:31 -0700 Subject: [PATCH 1/4] Get the full WebAssembly pipeline working for much smaller web build --- CrossPlatformUI.Browser/.gitignore | 4 ++ .../CrossPlatformUI.Browser.csproj | 50 +++++++++++++------ CrossPlatformUI.Browser/wwwroot/main.js | 6 +++ 3 files changed, 46 insertions(+), 14 deletions(-) diff --git a/CrossPlatformUI.Browser/.gitignore b/CrossPlatformUI.Browser/.gitignore index 8c1ebcff..5112f3f6 100644 --- a/CrossPlatformUI.Browser/.gitignore +++ b/CrossPlatformUI.Browser/.gitignore @@ -1 +1,5 @@ +wwwroot/Asm +wwwroot/js65 +wwwroot/Sprites wwwroot/ips-manifest.txt +wwwroot/PalaceRooms.json diff --git a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj index 907839cb..993c251f 100644 --- a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj +++ b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj @@ -1,4 +1,4 @@ - + Exe net10.0-browser @@ -17,13 +17,14 @@ Debug;Release;Unsafe Debug AnyCPU - + false + copyused - + full @@ -44,17 +45,35 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -74,8 +100,4 @@ - - - - diff --git a/CrossPlatformUI.Browser/wwwroot/main.js b/CrossPlatformUI.Browser/wwwroot/main.js index f315d374..2075f264 100644 --- a/CrossPlatformUI.Browser/wwwroot/main.js +++ b/CrossPlatformUI.Browser/wwwroot/main.js @@ -26,6 +26,12 @@ function showError(msg) { // identify runtime/assembly payloads const isBootResource = (url, res) => { const u = (typeof url === "string" ? url : url.url || "").toLowerCase(); + + // Skip hot reload endpoints entirely + if (u.includes("hotreload")) { + return false; + } + const ext = /\.(wasm|dll|pdb|dat|gz|br|json|blat|bundle)$/.test(u); const frameworkPath = u.includes("/_framework/") || u.includes("dotnet.") || u.includes("icudt"); const ct = res?.headers?.get("content-type") || ""; From 3c77438f13bacfa407964ad7e4209d2f2fd680ab Mon Sep 17 00:00:00 2001 From: Justin Olbrantz Date: Thu, 21 May 2026 18:51:56 -0700 Subject: [PATCH 2/4] (hopefully) get workflow to work --- .github/workflows/build-branch-for-web.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-branch-for-web.yaml b/.github/workflows/build-branch-for-web.yaml index b3b54bc1..c5c13d41 100644 --- a/.github/workflows/build-branch-for-web.yaml +++ b/.github/workflows/build-branch-for-web.yaml @@ -49,6 +49,6 @@ jobs: with: name: Z2Randomizer-${{ inputs.version }}-${{ matrix.platform.name }} path: | - CrossPlatformUI.Browser/bin/Release/net10.0-browser/browser-wasm/AppBundle/ + CrossPlatformUI.Browser/bin/Release/net10.0-browser/publish !**/*.pdb From 7b0a9cdaf57db89c4dc4ecc742506ee769963f05 Mon Sep 17 00:00:00 2001 From: Justin Olbrantz Date: Fri, 22 May 2026 01:15:45 -0700 Subject: [PATCH 3/4] Enable trimming and AOT --- CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj index 993c251f..936b7ec9 100644 --- a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj +++ b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj @@ -17,14 +17,13 @@ Debug;Release;Unsafe Debug AnyCPU - false - copyused + partial - + full From 4df03365fcee83dd7846f699bc1f3ae0ac263d69 Mon Sep 17 00:00:00 2001 From: Justin Olbrantz Date: Fri, 22 May 2026 01:40:30 -0700 Subject: [PATCH 4/4] Disable compression for now --- CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj index 936b7ec9..87806e32 100644 --- a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj +++ b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj @@ -19,6 +19,9 @@ AnyCPU partial + + false + false