diff --git a/LightBulb/LightBulb.csproj b/LightBulb/LightBulb.csproj index 4230f62..34ad3ee 100644 --- a/LightBulb/LightBulb.csproj +++ b/LightBulb/LightBulb.csproj @@ -29,7 +29,7 @@ - + \ No newline at end of file diff --git a/LightBulb/Program.cs b/LightBulb/Program.cs index 5b5d5d6..b7695ba 100644 --- a/LightBulb/Program.cs +++ b/LightBulb/Program.cs @@ -17,7 +17,7 @@ public static class Program public static string VersionString { get; } = Version.ToString(3); - public static string ExecutableDirPath { get; } = AppDomain.CurrentDomain.BaseDirectory; + public static string ExecutableDirPath { get; } = AppContext.BaseDirectory; public static string ExecutableFilePath { get; } = Path.ChangeExtension(Assembly.Location, "exe"); diff --git a/LightBulb/Services/UpdateService.cs b/LightBulb/Services/UpdateService.cs index fc597fb..78d738f 100644 --- a/LightBulb/Services/UpdateService.cs +++ b/LightBulb/Services/UpdateService.cs @@ -71,10 +71,6 @@ public void FinalizeUpdate(Version version) if (!settingsService.IsAutoUpdateEnabled) return; - // Onova only works on Windows currently - if (!OperatingSystem.IsWindows()) - return; - try { _updateManager.LaunchUpdater(version);