mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Setting the rpath for System.Security.Cryptography.Native.dylib at bu… (#84)
* Setting the rpath for System.Security.Cryptography.Native.dylib at build time for mac
This commit is contained in:
@@ -322,7 +322,13 @@ Task("OnlyPublish")
|
|||||||
publishArguments = $"{publishArguments} --output \"{outputFolder}\" \"{projectFolder}\"";
|
publishArguments = $"{publishArguments} --output \"{outputFolder}\" \"{projectFolder}\"";
|
||||||
Run(dotnetcli, publishArguments)
|
Run(dotnetcli, publishArguments)
|
||||||
.ExceptionOnError($"Failed to publish {project} / {framework}");
|
.ExceptionOnError($"Failed to publish {project} / {framework}");
|
||||||
|
//Setting the rpath for System.Security.Cryptography.Native.dylib library
|
||||||
|
//Only required for mac. We're assuming the openssl is installed in /usr/local/opt/openssl
|
||||||
|
//If that's not the case user has to run the command manually
|
||||||
|
if (runtime.Contains("osx"))
|
||||||
|
{
|
||||||
|
Run("install_name_tool", "-add_rpath /usr/local/opt/openssl/lib " + outputFolder + "/System.Security.Cryptography.Native.dylib");
|
||||||
|
}
|
||||||
if (requireArchive)
|
if (requireArchive)
|
||||||
{
|
{
|
||||||
Package(runtime, framework, outputFolder, packageFolder, buildPlan.MainProject.ToLower());
|
Package(runtime, framework, outputFolder, packageFolder, buildPlan.MainProject.ToLower());
|
||||||
|
|||||||
Reference in New Issue
Block a user