Skip to content

Commit

Permalink
Linux Macos extension bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrohanea committed Jun 30, 2024
1 parent 9dce1c1 commit b859333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Whisper.net/LibraryLoader/NativeLibraryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ private static string GetLibraryPath(string platform, string libraryName, string
var libraryFileName = platform switch
{
"win" => $"{libraryName}.dll",
"macos" => $"lib{libraryName}.so",
"linux" => $"lib{libraryName}.dylib",
"macos" => $"lib{libraryName}.dylib",
"linux" => $"lib{libraryName}.so",
_ => throw new PlatformNotSupportedException($"Unsupported OS platform, architecture: {RuntimeInformation.OSArchitecture}")
};
return Path.Combine(runtimePath, libraryFileName);
Expand Down

0 comments on commit b859333

Please sign in to comment.