enable trimming
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<LangVersion>latest</LangVersion>
|
||||
<ImplicitUsings>true</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
@@ -20,4 +21,17 @@
|
||||
<DebugType>None</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="Newtonsoft.Json"/>
|
||||
<TrimmerRootAssembly Include="Pilz"/>
|
||||
<TrimmerRootAssembly Include="Pilz.Updating"/>
|
||||
<TrimmerRootAssembly Include="Pilz.Updating.Client"/>
|
||||
<TrimmerRootAssembly Include="Pilz.Configuration"/>
|
||||
<TrimmerRootAssembly Include="Yggdrasil.Engine"/>
|
||||
<TrimmerRootAssembly Include="Octokit"/>
|
||||
<TrimmerRootAssembly Include="Modrinth.Net"/>
|
||||
<TrimmerRootAssembly Include="CurseForge.APIClient"/>
|
||||
<TrimmerRootAssembly Include="ExCSS"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -189,7 +189,7 @@ public partial class MainForm : Window
|
||||
{
|
||||
lastUpdateCheckResult = await updater.Check(updateOptions);
|
||||
}
|
||||
catch (Exception)
|
||||
catch
|
||||
{
|
||||
error();
|
||||
if (Debugger.IsAttached)
|
||||
@@ -275,7 +275,7 @@ public partial class MainForm : Window
|
||||
private async void MainForm_Loaded(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
var updates = new AppUpdates(Program.UpdateUrl, this);
|
||||
updates.OnDownloadProgramUpdate += (o, args) => SetStatus(GeneralLangRes.DownloadProgramUpdate, AppGlobals.Symbols.GetImageSource(AppSymbols.software_installer));
|
||||
updates.OnDownloadProgramUpdate += (o, _) => SetStatus(GeneralLangRes.DownloadProgramUpdate, AppGlobals.Symbols.GetImageSource(AppSymbols.software_installer));
|
||||
await updates.UpdateApp();
|
||||
ClearStatus();
|
||||
|
||||
|
||||
@@ -9,6 +9,13 @@
|
||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="MinecraftModpackUpdater"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater.Manager"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater.Apps"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Version.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -36,7 +36,7 @@ IconFiles = """
|
||||
|
||||
# DOTNET PUBLISH
|
||||
DotnetProjectPath = ModpackUpdater.Apps.Client.Gui.csproj
|
||||
DotnetPublishArgs = -p:Version=${APP_VERSION} --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=false
|
||||
DotnetPublishArgs = -p:Version=${APP_VERSION} --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=true
|
||||
DotnetPostPublish =
|
||||
DotnetPostPublishOnWindows =
|
||||
|
||||
|
||||
@@ -6,6 +6,13 @@
|
||||
<AssemblyName>MinecraftModpackUpdaterCli</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="MinecraftModpackUpdaterCli"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater.Manager"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater.Apps"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Version.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -34,7 +34,7 @@ IconFiles = """
|
||||
|
||||
# DOTNET PUBLISH
|
||||
DotnetProjectPath = ModpackUpdater.Apps.Client.csproj
|
||||
DotnetPublishArgs = -p:Version=${APP_VERSION} --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=false
|
||||
DotnetPublishArgs = -p:Version=${APP_VERSION} --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=true
|
||||
DotnetPostPublish =
|
||||
DotnetPostPublishOnWindows =
|
||||
|
||||
|
||||
@@ -9,6 +9,14 @@
|
||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="MinecraftModpackUpdateManager"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater.Manager"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater.Apps"/>
|
||||
<TrimmerRootAssembly Include="ModpackUpdater"/>
|
||||
<TrimmerRootAssembly Include="NGitLab"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Version.cs" />
|
||||
<Compile Update="LangRes\UpdateActionTypeLangRes.Designer.cs">
|
||||
|
||||
@@ -36,7 +36,7 @@ IconFiles = """
|
||||
|
||||
# DOTNET PUBLISH
|
||||
DotnetProjectPath = ModpackUpdater.Apps.Manager.csproj
|
||||
DotnetPublishArgs = -p:Version=${APP_VERSION} --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=false
|
||||
DotnetPublishArgs = -p:Version=${APP_VERSION} --self-contained true -p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=true
|
||||
DotnetPostPublish =
|
||||
DotnetPostPublishOnWindows =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user