Skip to content

Commit

Permalink
Fix native library name on non Windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Feb 26, 2023
1 parent 9f9422e commit e75f967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/NPlug.Proxy/AudioPluginProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public static string GetVstDynamicLibraryName(string name)

if (OperatingSystem.IsMacOS())
{
return $"lib{name}.dylib";
return $"{name}.dylib";
}

if (OperatingSystem.IsLinux())
{
return $"lib{name}.so";
return $"{name}.so";
}

throw new PlatformNotSupportedException();
Expand Down
2 changes: 1 addition & 1 deletion src/NPlug.Validator/build/NPlug.Validator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<Content Condition="'$(NPlugProxyLibraryFile)' != '' AND Exists('$(NPlugProxyLibraryFile)') AND '$(NPlugVstArch)' != ''" Include="$(NPlugProxyLibraryFile)" Link="nplug_validator_proxy.vst3/Contents/$(NPlugVstArch)/$(NPlugNativeLibraryPrefix)nplug_validator_proxy$(NPlugVstNativeLibraryExtension)">
<Content Condition="'$(NPlugProxyLibraryFile)' != '' AND Exists('$(NPlugProxyLibraryFile)') AND '$(NPlugVstArch)' != ''" Include="$(NPlugProxyLibraryFile)" Link="nplug_validator_proxy.vst3/Contents/$(NPlugVstArch)/nplug_validator_proxy$(NPlugVstNativeLibraryExtension)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</Content>
Expand Down

0 comments on commit e75f967

Please sign in to comment.