chore: ILauncher -> IBootstrapper
This commit is contained in:
parent
d93db964d9
commit
8dba3ab782
|
|
@ -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()
|
||||
{
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace Kiseki.Launcher
|
||||
{
|
||||
public interface ILauncher
|
||||
public interface IBootstrapper
|
||||
{
|
||||
static abstract void Install();
|
||||
static abstract void Uninstall(bool quiet = false);
|
||||
Loading…
Reference in New Issue