mac-virtualcam: Move DAL plugin to plugin data directory
Moves the DAL plugin to the data directory of the mac-virtualcam. Until now, it was just lying in the top-level data directory
This commit is contained in:
parent
0f2c1447ab
commit
4d1764036f
@ -104,6 +104,6 @@ add_custom_command(TARGET mac-dal-plugin
|
||||
add_custom_command(TARGET mac-dal-plugin
|
||||
POST_BUILD
|
||||
COMMAND rm -rf "${OBS_OUTPUT_DIR}/$<CONFIGURATION>/data/obs-mac-virtualcam.plugin" || true
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${TARGET_DIR}/obs-mac-virtualcam.plugin "${OBS_OUTPUT_DIR}/$<CONFIGURATION>/data/obs-mac-virtualcam.plugin"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${TARGET_DIR}/obs-mac-virtualcam.plugin "${OBS_OUTPUT_DIR}/$<CONFIGURATION>/data/obs-plugins/mac-virtualcam/obs-mac-virtualcam.plugin"
|
||||
COMMENT "Copy plugin to destination"
|
||||
)
|
||||
|
@ -58,7 +58,7 @@ static bool check_dal_plugin()
|
||||
if ([app bundleIdentifier] != nil) {
|
||||
NSURL *bundleURL = [app bundleURL];
|
||||
NSString *pluginPath =
|
||||
@"Contents/Resources/data/obs-mac-virtualcam.plugin";
|
||||
@"Contents/Resources/data/obs-plugins/mac-virtualcam/obs-mac-virtualcam.plugin";
|
||||
|
||||
NSURL *pluginUrl = [bundleURL
|
||||
URLByAppendingPathComponent:pluginPath];
|
||||
@ -66,7 +66,7 @@ static bool check_dal_plugin()
|
||||
} else {
|
||||
dalPluginSourcePath = [[[[app executableURL]
|
||||
URLByAppendingPathComponent:
|
||||
@"../data/obs-mac-virtualcam.plugin"]
|
||||
@"../data/obs-plugins/mac-virtualcam/obs-mac-virtualcam.plugin"]
|
||||
path]
|
||||
stringByReplacingOccurrencesOfString:@"obs/"
|
||||
withString:@""];
|
||||
|
Loading…
x
Reference in New Issue
Block a user