Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Leayal committed Sep 23, 2024
1 parent e349a60 commit 31407d8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ namespace Leayal.SnowBreakLauncher
{
static internal class AssemblyInfo
{
public const string Version = "1.3.7";
public const string Version = "1.3.8";
}
}
12 changes: 10 additions & 2 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Runtime.CompilerServices;
using Avalonia.Threading;
using Leayal.SnowBreakLauncher.Snowbreak;
using Avalonia.Vulkan;

namespace Leayal.SnowBreakLauncher;

Expand Down Expand Up @@ -45,10 +46,17 @@ public static void Main(string[] args)
{
var builder = AppBuilder.Configure<App>(() => new App(processInstance))
// The options below will be ignored by Avalonia if the operating system running this launcher on non-Windows OS.
.With(new VulkanOptions()
{
#if DEBUG
VulkanInstanceCreationOptions = new VulkanInstanceCreationOptions() { UseDebug = true },
#endif
VulkanDeviceCreationOptions = new VulkanDeviceCreationOptions() { PreferDiscreteGpu = true }
})
.With(new Win32PlatformOptions()
{
CompositionMode = new Win32CompositionMode[] { Win32CompositionMode.WinUIComposition /* (Win32CompositionMode)2 This is DirectComposition, a meaningless value, deprecated by WinUIComposition */, Win32CompositionMode.LowLatencyDxgiSwapChain, Win32CompositionMode.RedirectionSurface },
RenderingMode = new Win32RenderingMode[] { Win32RenderingMode.AngleEgl, Win32RenderingMode.Wgl, Win32RenderingMode.Software },
CompositionMode = new Win32CompositionMode[] { Win32CompositionMode.WinUIComposition, Win32CompositionMode.DirectComposition, Win32CompositionMode.LowLatencyDxgiSwapChain, Win32CompositionMode.RedirectionSurface },
RenderingMode = new Win32RenderingMode[] { Win32RenderingMode.Vulkan, Win32RenderingMode.AngleEgl, Win32RenderingMode.Wgl, Win32RenderingMode.Software }
})
.UsePlatformDetect()
.WithInterFont();
Expand Down
16 changes: 11 additions & 5 deletions src/SnowBreakLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,25 @@

<ItemGroup>
<!--I decide to ditch this thing, favoring .NET8-->
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.22087.20231008" />
<PackageReference Include="Avalonia.BuildServices" Version="0.0.31" />
<PackageReference Include="DialogHost.Avalonia" Version="0.8.1" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="System.IO.Pipelines" Version="8.0.0" />
<PackageReference Condition="!$(DefineConstants.Contains('NO_WMI'))" Include="System.Management" Version="8.0.0" />
<PackageReference Include="Avalonia" Version="11.1.1" />
<PackageReference Include="Avalonia.Desktop" Version="11.1.1" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.1" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.1.1" />
<PackageReference Include="Avalonia" Version="11.1.3" />
<PackageReference Include="Avalonia.Desktop" Version="11.1.3" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.3" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.1.3" />
<PackageReference Include="MessageBox.Avalonia" Version="3.1.6" />
<!--"Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration." is partially wrong-->
<!--As of avalon v11.0.0, for whatever reasons, building with configuration Release without this package will simply fail with XAML Parse error (Unable to resolve type SimpleTheme from namespace https://github.com/avaloniaui)-->
<!--The option to workaround this is not using SimpleTheme, or including this package below to build with SimpleTheme.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.1.1" />
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.1.3" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
<PackageReference Include="Tmds.DBus.Protocol" Version="0.20.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 31407d8

Please sign in to comment.