Skip to content

Commit

Permalink
修复Windows on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
mujianwu committed Jan 5, 2025
1 parent 78c34d6 commit 22969c4
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions UotanToolbox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,22 @@ public static AppBuilder BuildAvaloniaApp()
Global.password = StringHelper.RandomString(8);
// No need to set default for Windows
AppBuilder app = AppBuilder.Configure<App>();
if (OperatingSystem.IsWindows())
if (OperatingSystem.IsWindows() && RuntimeInformation.OSArchitecture == Architecture.X64)
{
if (RuntimeInformation.OSArchitecture == Architecture.X64)
{
app = AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new Win32PlatformOptions
app = AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new Win32PlatformOptions
{
RenderingMode = new[]
{
RenderingMode = new[]
{
Win32RenderingMode.Vulkan
}
})
.WithInterFont()
#if DEBUG
.LogToTrace()
#endif
.UseXamlDisplay();
}
}
})
.WithInterFont()
#if DEBUG
.LogToTrace()
#endif
.UseXamlDisplay();
}
else
{
Expand Down

0 comments on commit 22969c4

Please sign in to comment.