Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Aug 15, 2024
1 parent 86846f9 commit 8229dfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Console/Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@

<Target Name="Download PortAudio before build" BeforeTargets="PreBuildEvent">
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)/DownloadPortAudioBin.ps1&quot; -Platform $(PortAudioPlatform) -OutputPath &quot;$(ProjectDir)/$(PortAudioFileName)&quot;" LogStandardErrorAsError="true" />
<Copy SourceFiles="$(ProjectDir)/$(PortAudioFileName)" DestinationFolder="$(OutDir)/runtimes/$(PortAudioPlatform)/native" SkipUnchangedFiles="true" />
<Copy SourceFiles="$(ProjectDir)/$(PortAudioFileName)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" />
</Target>

<Target Name="Download PortAudio before publish" BeforeTargets="PrepareForPublish">
<Exec Command="pwsh -ExecutionPolicy Bypass -File &quot;$(ProjectDir)/DownloadPortAudioBin.ps1&quot; -Platform $(PortAudioPlatform) -OutputPath &quot;$(ProjectDir)/$(PortAudioFileName)&quot;" LogStandardErrorAsError="true" />
<Copy SourceFiles="$(ProjectDir)/$(PortAudioFileName)" DestinationFolder="$(PublishDir)/runtimes/$(PortAudioPlatform)/native" SkipUnchangedFiles="true" />
<Copy SourceFiles="$(ProjectDir)/$(PortAudioFileName)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="true" />
</Target>

</Project>
1 change: 1 addition & 0 deletions Console/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static class Utils

public static void ConfigurePlatformDependencies()
{
Environment.SetEnvironmentVariable("DYLD_FALLBACK_LIBRARY_PATH", ".");
PortAudio.LoadNativeLibrary();
PortAudio.Initialize();
}
Expand Down

0 comments on commit 8229dfe

Please sign in to comment.