Added copying of MacOS plugins to Synergy bundle #4696

This commit is contained in:
Adam Potolsky 2015-06-09 10:19:27 -07:00
parent ed37eeca51
commit c8740a4971
1 changed files with 10 additions and 0 deletions

View File

@ -739,6 +739,16 @@ class InternalCommands:
shutil.copy(targetDir + "/synergys", bundleBinDir) shutil.copy(targetDir + "/synergys", bundleBinDir)
shutil.copy(targetDir + "/syntool", bundleBinDir) shutil.copy(targetDir + "/syntool", bundleBinDir)
# Copy all generated plugins to the package
bundlePluginDir = bundleBinDir + "plugins"
pluginDir = targetDir + "/plugins"
print "Copying plugins dirtree: " + pluginDir
if os.path.isdir(pluginDir):
print "Copying to: " + bundlePluginDir
shutil.copytree(pluginDir, bundlePluginDir)
else:
print "pluginDir doesn't exist, skipping"
self.loadConfig() self.loadConfig()
if not self.macIdentity: if not self.macIdentity:
raise Exception("run config with --mac-identity") raise Exception("run config with --mac-identity")