Add Updater.exe that can update to latest release and debug

This commit is contained in:
Kamil Trzciński 2022-12-11 02:35:46 +01:00
parent 275ce48509
commit 2259e17b21
18 changed files with 623 additions and 59 deletions

View file

@ -30,6 +30,7 @@ namespace PerformanceOverlay
SharedData_Update();
Instance.Open(TitleWithVersion, true, "Global\\PerformanceOverlay");
Instance.RunUpdater(TitleWithVersion);
if (Instance.WantsRunOnStartup)
startupManager.Startup = true;
@ -71,11 +72,11 @@ namespace PerformanceOverlay
contextMenu.Items.Add(startupItem);
}
var checkForUpdatesItem = contextMenu.Items.Add("&Check for Updates");
checkForUpdatesItem.Click += delegate { Instance.RunUpdater(TitleWithVersion, true); };
var helpItem = contextMenu.Items.Add("&Help");
helpItem.Click += delegate
{
System.Diagnostics.Process.Start("explorer.exe", "https://steam-deck-tools.ayufan.dev");
};
helpItem.Click += delegate { System.Diagnostics.Process.Start("explorer.exe", "https://steam-deck-tools.ayufan.dev"); };
contextMenu.Items.Add(new ToolStripSeparator());