Skip to content

Commit 5d77684

Browse files
committed
Move tensorfile in to resources folder of bundle
1 parent 1ff9ddb commit 5d77684

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ear-production-suite-plugins/plugins/binaural_monitoring/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ add_custom_command(TARGET ear_binaural_monitoring_VST3 POST_BUILD
7979
)
8080

8181
if(APPLE)
82-
install(FILES ${TENSORFILE_FULLPATH} DESTINATION "${EPS_PLUGIN_INSTALL_PREFIX}VST3/ear-production-suite/EAR Binaural Monitoring.vst3/Contents/MacOS")
82+
install(FILES ${TENSORFILE_FULLPATH} DESTINATION "${EPS_PLUGIN_INSTALL_PREFIX}VST3/ear-production-suite/EAR Binaural Monitoring.vst3/Contents/Resources")
8383
else()
8484
install(FILES ${TENSORFILE_FULLPATH} DESTINATION "${EPS_PLUGIN_INSTALL_PREFIX}VST3/ear-production-suite")
8585
endif()

ear-production-suite-plugins/plugins/binaural_monitoring/src/binaural_monitoring_plugin_processor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ EarBinauralMonitoringAudioProcessor::EarBinauralMonitoringAudioProcessor()
7777
auto vstPath = juce::File::getSpecialLocation(
7878
juce::File::SpecialLocationType::currentExecutableFile);
7979
vstPath = vstPath.getParentDirectory();
80+
#ifdef(__APPLE__)
81+
vstPath = vstPath.getParentDirectory();
82+
vstPath = vstPath.getChildFile("Resources");
83+
#endif
8084
vstPath = vstPath.getChildFile(BEAR_DATA_FILE);
8185
bearDataFilePath = vstPath.getFullPathName().toStdString();
8286

0 commit comments

Comments
 (0)