Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/c#/GeneralUpdate.Drivelution/Core/DriverUpdaterFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public static IGeneralDrivelution Create(DrivelutionOptions? options = null)
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
GeneralTracer.Warn("MacOS platform detected but not yet implemented");
throw new PlatformNotSupportedException(
"MacOS driver update is not yet implemented. " +
"This is a placeholder for future MacOS support. " +
"Current platform: macOS");
GeneralTracer.Info("Detected macOS platform, creating MacOsGeneralDrivelution");
var validator = new MacOSDriverValidator();
var backup = new MacOSDriverBackup();
var commandRunner = new CommandRunner();
return new MacOsGeneralDrivelution(validator, backup, commandRunner, options);
}
else
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public static string GetCurrentPlatform()
public static bool IsPlatformSupported()
{
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ||
RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
// MacOS is planned but not yet implemented
RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
}
}
Loading
Loading