Skip to content

Commit

Permalink
macx/scripts: fix osxdist.py and build-installer-overlay to work in a…
Browse files Browse the repository at this point in the history
… source tree path with spaces in it.
  • Loading branch information
mkrautz committed Jul 20, 2014
1 parent e740ea5 commit 840a31d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions macx/scripts/build-overlay-installer
Expand Up @@ -39,8 +39,8 @@ root=$(mktemp -d -t mumble-overlay-installer)
/usr/bin/xar -f release/synth.pkg -x -C ${root}
mkdir -p ${root}/Resources
cp icons/mumble.osx.installer.png ${root}/Resources/bg.png
VERSION=`defaults read $(pwd)/macx/osax/osax MumbleOverlayVersion`
MINCLIENT=`defaults read $(pwd)/macx/osax/osax MumbleOverlayMinMumbleVersion`
VERSION=`defaults read "${PWD}/macx/osax/osax" "MumbleOverlayVersion"`
MINCLIENT=`defaults read "${PWD}/macx/osax/osax" "MumbleOverlayMinMumbleVersion"`
echo "<upgrade version=\"${VERSION}\" minclient=\"${MINCLIENT}\" />" > ${root}/upgrade.xml

sed -i '' -e 's,<installer-gui-script minSpecVersion="1">,<installer-gui-script minSpecVersion="1"><title>Mumble Overlay</title><background mime-type="image/png" file="bg.png" />,' ${root}/Distribution
Expand Down
15 changes: 12 additions & 3 deletions macx/scripts/osxdist.py
Expand Up @@ -81,7 +81,10 @@ def create_overlay_package():
if options.developer_id:
codesign(bundle)
codesign(overlaylib)
os.system('./macx/scripts/build-overlay-installer')
p = Popen(('./macx/scripts/build-overlay-installer',))
retval = p.wait()
if retval != 0:
raise Exception('build-overlay-installer failed')
if options.developer_id:
os.rename('release/MumbleOverlay.pkg', 'release/MumbleOverlayUnsigned.pkg')
prodsign('release/MumbleOverlayUnsigned.pkg', 'release/MumbleOverlay.pkg')
Expand Down Expand Up @@ -156,7 +159,10 @@ def add_compat_warning(self):
The compat binary displays a warning dialog telling the user that they need to download a universal version of Mumble
'''
print ' * Splicing Mumble.compat into main bundle executable'
os.system('lipo -create release/Mumble.compat -arch x86_64 %s -output %s' % (self.binary, self.binary))
p = Popen(('lipo', '-create', 'release/Mumble.compat', '-arch', 'x86_64', self.binary, '-output', self.binary))
retval = p.wait()
if retval != 0:
raise Exception('build-overlay-installer failed')

def set_min_macosx_version(self, version):
'''
Expand Down Expand Up @@ -325,7 +331,10 @@ def package_server():
name = 'Murmur-OSX-Static-%s' % ver

# Fix .ini files
os.system('cd scripts && sh mkini.sh')
p = Popen(('bash', 'mkini.sh'), cwd='scripts')
retval = p.wait()
if retval != 0:
raise Exception('build-overlay-installer failed')

destdir = os.path.join('release', name)
if os.path.exists(destdir):
Expand Down

0 comments on commit 840a31d

Please sign in to comment.