|
@@ -1232,13 +1232,13 @@ bool CarlaPlugin::exportAsLV2(const char* const lv2path) |
|
|
const CarlaString binFolderTarget(bundlepath + CARLA_OS_SEP_STR + "bin"); |
|
|
const CarlaString binFolderTarget(bundlepath + CARLA_OS_SEP_STR + "bin"); |
|
|
const CarlaString resFolderTarget(bundlepath + CARLA_OS_SEP_STR + "res"); |
|
|
const CarlaString resFolderTarget(bundlepath + CARLA_OS_SEP_STR + "res"); |
|
|
|
|
|
|
|
|
#ifdef CARLA_OS_WIN |
|
|
|
|
|
if (! binaryFileSource.copyFileTo(binaryFileTarget)) |
|
|
if (! binaryFileSource.copyFileTo(binaryFileTarget)) |
|
|
{ |
|
|
{ |
|
|
pData->engine->setLastError("Failed to copy plugin binary"); |
|
|
pData->engine->setLastError("Failed to copy plugin binary"); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef CARLA_OS_WIN |
|
|
File(opts.resourceDir).copyDirectoryTo(File(resFolderTarget.buffer())); |
|
|
File(opts.resourceDir).copyDirectoryTo(File(resFolderTarget.buffer())); |
|
|
|
|
|
|
|
|
// Copying all the binaries is pointless, just go through the expected needed bits |
|
|
// Copying all the binaries is pointless, just go through the expected needed bits |
|
@@ -1257,12 +1257,6 @@ bool CarlaPlugin::exportAsLV2(const char* const lv2path) |
|
|
for (int i=0; i<5; ++i) |
|
|
for (int i=0; i<5; ++i) |
|
|
binFolder1.getChildFile(files[i]).copyFileTo(binFolder2.getChildFile(files[i]));; |
|
|
binFolder1.getChildFile(files[i]).copyFileTo(binFolder2.getChildFile(files[i]));; |
|
|
#else |
|
|
#else |
|
|
if (! binaryFileSource.createSymbolicLink(binaryFileTarget, true)) |
|
|
|
|
|
{ |
|
|
|
|
|
pData->engine->setLastError("Failed to create symbolik link of plugin binary"); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
File(opts.binaryDir).createSymbolicLink(File(binFolderTarget.buffer()), true); |
|
|
File(opts.binaryDir).createSymbolicLink(File(binFolderTarget.buffer()), true); |
|
|
File(opts.resourceDir).createSymbolicLink(File(resFolderTarget.buffer()), true); |
|
|
File(opts.resourceDir).createSymbolicLink(File(resFolderTarget.buffer()), true); |
|
|
#endif |
|
|
#endif |
|
|