From 2d5ad45e0831e6211d764d2def20498a4358b092 Mon Sep 17 00:00:00 2001 From: Adam Potolsky Date: Tue, 26 May 2015 13:18:14 -0700 Subject: [PATCH] Adding plugin to install for deb builds. #4696 --- ext/toolchain/commands1.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)