Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed May 23, 2024
1 parent d6899d7 commit 097316d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LightBulb/LightBulb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<PackageReference Include="Material.Avalonia" Version="3.5.0" />
<PackageReference Include="Material.Icons.Avalonia" Version="2.1.9" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Onova" Version="2.6.11" />
<PackageReference Include="Onova" Version="2.6.12" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion LightBulb/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 0 additions & 4 deletions LightBulb/Services/UpdateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 097316d

Please sign in to comment.