mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-22 15:45:22 +03:00
Adding plugin to install for deb builds. #4696
This commit is contained in:
parent
773530506e
commit
2d5ad45e08
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user