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 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..87806e32 100644 --- a/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj +++ b/CrossPlatformUI.Browser/CrossPlatformUI.Browser.csproj @@ -1,4 +1,4 @@ - + Exe net10.0-browser @@ -17,8 +17,11 @@ Debug;Release;Unsafe Debug AnyCPU - + partial + + false + false @@ -44,17 +47,35 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -74,8 +102,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") || "";