chore: ILauncher -> IBootstrapper

This commit is contained in:
rjindael 2023-08-01 23:29:20 -07:00
parent d93db964d9
commit 8dba3ab782
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
3 changed files with 6 additions and 6 deletions

View File

@ -5,11 +5,11 @@ using Microsoft.Win32;
namespace Kiseki.Launcher.Windows
{
public class Launcher : ILauncher
public class Bootstrapper : IBootstrapper
{
public readonly static string Version = Assembly.GetExecutingAssembly().GetName().Version!.ToString()[..^2];
#region ILauncher implementation
#region IBootstrapper implementation
public static void Install()
{

View File

@ -24,7 +24,7 @@ namespace Kiseki.Launcher.Windows
if (!isConnected && Web.IsInMaintenance)
{
// Try again with the maintenance domain
Launcher.TryLoadLicense();
Bootstrapper.TryLoadLicense();
isConnected = Web.Initialize();
}
@ -37,7 +37,7 @@ namespace Kiseki.Launcher.Windows
if (!File.Exists(Directories.Application))
{
// The launcher is not installed, so let's run the install process - this will also exit the application
Launcher.Install();
Bootstrapper.Install();
}
else
{
@ -50,7 +50,7 @@ namespace Kiseki.Launcher.Windows
if (args[0] == "-uninstall")
{
Launcher.Uninstall(args[0] == "-quiet");
Bootstrapper.Uninstall(args[0] == "-quiet");
return;
}

View File

@ -1,6 +1,6 @@
namespace Kiseki.Launcher
{
public interface ILauncher
public interface IBootstrapper
{
static abstract void Install();
static abstract void Uninstall(bool quiet = false);