diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py index d06b29ee..cb14ae72 100644 --- a/ext/toolchain/commands1.py +++ b/ext/toolchain/commands1.py @@ -1135,12 +1135,14 @@ class InternalCommands: controlFile.close() targetBin = '%s/%s/usr/bin' % (debDir, package) + targetPlugin = '%s/%s/usr/lib/synergy-plugins' % (debDir, package) targetShare = '%s/%s/usr/share' % (debDir, package) targetApplications = "%s/applications" % targetShare targetIcons = "%s/icons" % targetShare targetDocs = "%s/doc/%s" % (targetShare, self.project) os.makedirs(targetBin) + os.makedirs(targetPlugin) os.makedirs(targetApplications) os.makedirs(targetIcons) os.makedirs(targetDocs) @@ -1158,6 +1160,17 @@ class InternalCommands: if err != 0: raise Exception('strip failed: ' + str(err)) + pluginDir = "%s/plugins" % binDir + + pluginFiles = [ 'libns.so'] + for f in pluginFiles: + shutil.copy("%s/%s" % (pluginDir, f), targetPlugin) + target = "%s/%s" % (targetPlugin, f) + os.chmod(target, 0o0644) + err = os.system("strip " + target) + if err != 0: + raise Exception('strip failed: ' + str(err)) + shutil.copy("%s/synergy.desktop" % resDir, targetApplications) shutil.copy("%s/synergy.ico" % resDir, targetIcons)