Skip to content

Commit

Permalink
Updates the wasm demo to nightly avalonia
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Apr 7, 2024
1 parent 51e664d commit ea3ce12
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
26 changes: 13 additions & 13 deletions Material.Avalonia.Demo.Browser/AppBundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
<html>

<head>
<title>AvaloniaCrossPlatformSample.Browser</title>
<title>Material.Avalonia</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="/" />
<link rel="modulepreload" href="./main.js" />
<link rel="modulepreload" href="./dotnet.js" />
<link rel="modulepreload" href="./avalonia.js" />
<link rel="modulepreload" href="./_framework/dotnet.js" />
<link rel="modulepreload" href="./_framework/avalonia.js" />
<link rel="stylesheet" href="./app.css" />
</head>

<body style="margin: 0px; overflow: hidden">
<div id="out">
<div id="avalonia-splash">
<div class="center">
<h2 class="purple">
Powered by
<a class="highlight" href="https://www.avaloniaui.net/" target="_blank">Avalonia UI</a>
</h2>
</div>
<img class="icon" src="Logo.svg" alt="Avalonia Logo" />
<div id="out">
<div id="avalonia-splash">
<div class="center">
<h2 class="purple">
Powered by
<a class="highlight" href="https://www.avaloniaui.net/" target="_blank">Avalonia UI</a>
</h2>
</div>
<img class="icon" src="Logo.svg" alt="Avalonia Logo" />
</div>
<script type='module' src="./main.js"></script>
</div>
<script type='module' src="./main.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion Material.Avalonia.Demo.Browser/AppBundle/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dotnet } from './dotnet.js'
import { dotnet } from './_framework/dotnet.js'

const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net8.0-browser</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<WasmMainJSPath>AppBundle\main.js</WasmMainJSPath>
<OutputType>Exe</OutputType>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<IsPackable>false</IsPackable>

<RunAOTCompilation>true</RunAOTCompilation>
<WasmBuildNative>true</WasmBuildNative>

<AvaloniaVersion>11.0.9</AvaloniaVersion>
<AvaloniaVersion>11.2.999-cibuild0047028-alpha</AvaloniaVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit ea3ce12

Please sign in to comment.