uff, enough for now

This commit is contained in:
2025-06-30 18:55:30 +02:00
parent 6674872848
commit b1ac3cd73c
6 changed files with 1857 additions and 8 deletions

View File

@@ -34,6 +34,7 @@ namespace ModpackUpdater.Apps.Client
[DebuggerStepThrough()]
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
RadLabel_MinecraftProfile = new Telerik.WinControls.UI.RadLabel();
RadLabel_ModpackUrl = new Telerik.WinControls.UI.RadLabel();
RadTextBox_MinecraftProfileFolder = new Telerik.WinControls.UI.RadTextBoxControl();
@@ -242,6 +243,7 @@ namespace ModpackUpdater.Apps.Client
AutoSizeMode = AutoSizeMode.GrowAndShrink;
ClientSize = new Size(422, 173);
Controls.Add(tableLayoutPanel1);
Icon = (Icon)resources.GetObject("$this.Icon");
MaximizeBox = false;
MinimumSize = new Size(430, 0);
Name = "MainForm";

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<!--<ApplicationIcon>minecraft modpack updater.ico</ApplicationIcon>-->
<ApplicationIcon>minecraft modpack updater.ico</ApplicationIcon>
<AssemblyName>Minecraft Modpack Updater</AssemblyName>
<ImplicitUsings>true</ImplicitUsings>
<UseWindowsForms>true</UseWindowsForms>

View File

@@ -26,8 +26,8 @@ public static class Program
static Program()
{
//settingsManager = new(GetSettingsPath(2), true);
//MigrateLegacySettings(GetSettingsPath(null));
settingsManager = new(GetSettingsPath(2), true);
MigrateLegacySettings(GetSettingsPath(null));
}
[STAThread]
@@ -40,8 +40,8 @@ public static class Program
InstallWithoutGui(Options.UpdateOptions, Options.Silent);
else
{
//if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
// ShowWindow(GetConsoleWindow(), 0);
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
ShowWindow(GetConsoleWindow(), 0);
RunApp(Options.UpdateOptions);
}
}
@@ -50,8 +50,7 @@ public static class Program
{
ApplicationConfiguration.Initialize();
AppGlobals.Initialize();
MessageBox.Show("TEST");
//Application.Run(new MainForm(updateOptions));
Application.Run(new MainForm(updateOptions));
}
private static string GetSettingsPath(int? settingsVersion = 3)

View File

@@ -10,7 +10,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net8.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 108 KiB