summaryrefslogtreecommitdiff
path: root/branding
diff options
context:
space:
mode:
authoradmin <admin@admins-iMac-Pro.local>2021-03-27 22:10:53 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-03-27 22:15:50 +0100
commit1c48e1628c0d148e5afaa1f69f2f961b6d7cc2b0 (patch)
treeb2a5084ef9bcd1de46159fdb6aaafd47e72b0395 /branding
parent4d3550ea36e49f13b485eb549ea216a478822751 (diff)
[pkg] fix post-install path in osx
there was a mismatch after latest changes to the plist template location. also revert latest osx depends, since some are not installable via homebrew in osx.
Diffstat (limited to 'branding')
-rwxr-xr-xbranding/templates/qtinstaller/osx-data/post-install.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/branding/templates/qtinstaller/osx-data/post-install.py b/branding/templates/qtinstaller/osx-data/post-install.py
index 83c8370..69b4a81 100755
--- a/branding/templates/qtinstaller/osx-data/post-install.py
+++ b/branding/templates/qtinstaller/osx-data/post-install.py
@@ -71,12 +71,12 @@ def fixHelperOwner(log):
return True
def copyLaunchDaemon():
+ appDir = os.path.join(_dir, _appdir)
plist = "se.leap.bitmask-helper.plist"
- path = os.path.join(_dir, plist)
- _p = os.path.join(_dir, _appdir)
- _p2= _p.replace("/", "\/")
- subprocess.call(["sed", "-i.back", "s/PATH/%s/" % _p2, path])
- shutil.copy(path, HELPER_PLIST)
+ plistFile = os.path.join(appDir, plist)
+ escapedPath = appDir.replace("/", "\/")
+ subprocess.call(["sed", "-i.back", "s/PATH/%s/g" % escapedPath, plistFile])
+ shutil.copy(plistFile, HELPER_PLIST)
def launchHelper():
out = subprocess.call(["launchctl", "load", HELPER_PLIST])