mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 06:18:02 +00:00
Fix mac .dmg packager for latest macports qt4
This commit is contained in:
parent
8788221761
commit
ace35a1997
@ -169,6 +169,9 @@ class DeploymentInfo(object):
|
|||||||
elif os.path.exists(os.path.join(parentDir, "share", "qt4", "translations")):
|
elif os.path.exists(os.path.join(parentDir, "share", "qt4", "translations")):
|
||||||
# MacPorts layout, e.g. "/opt/local/share/qt4"
|
# MacPorts layout, e.g. "/opt/local/share/qt4"
|
||||||
self.qtPath = os.path.join(parentDir, "share", "qt4")
|
self.qtPath = os.path.join(parentDir, "share", "qt4")
|
||||||
|
elif os.path.exists(os.path.join(os.path.dirname(parentDir), "share", "qt4", "translations")):
|
||||||
|
# Newer Macports layout
|
||||||
|
self.qtPath = os.path.join(os.path.dirname(parentDir), "share", "qt4")
|
||||||
|
|
||||||
if self.qtPath is not None:
|
if self.qtPath is not None:
|
||||||
pluginPath = os.path.join(self.qtPath, "plugins")
|
pluginPath = os.path.join(self.qtPath, "plugins")
|
||||||
@ -725,7 +728,7 @@ if config.dmg is not None:
|
|||||||
disk.close()
|
disk.close()
|
||||||
if bg_path is not None:
|
if bg_path is not None:
|
||||||
subprocess.call(["SetFile", "-a", "V", bg_path])
|
subprocess.call(["SetFile", "-a", "V", bg_path])
|
||||||
disk.update(registering_applications=False)
|
# disk.update(registering_applications=False)
|
||||||
sleep(2)
|
sleep(2)
|
||||||
disk.eject()
|
disk.eject()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user