Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/macx
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-05-17 09:49:39 +0300
committerRobert Adam <dev@robert-adam.de>2021-05-17 09:49:39 +0300
commit0d71b84ec74863154da390ae130af52d6952d876 (patch)
treee92fedc8cc683ae9d4134a604b449b433b0276e3 /macx
parent3511ba5a41f65b97a42a24dc2863ea68d15dae5a (diff)
REVERT: "BUILD(macos): Fix hdiutil error during dmg packaging"
This reverts commit 0b75cd6f8a25f015857525392e746949b680c99c.
Diffstat (limited to 'macx')
-rwxr-xr-xmacx/scripts/osxdist.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/macx/scripts/osxdist.py b/macx/scripts/osxdist.py
index 2697079c3..dab35ad4b 100755
--- a/macx/scripts/osxdist.py
+++ b/macx/scripts/osxdist.py
@@ -248,32 +248,14 @@ class DiskImage(FolderObject):
Create the disk image itself.
'''
print ' * Creating diskimage. Please wait...'
- if not self.filename.endswith(".dmg"):
- self.filename += ".dmg"
if os.path.exists(self.filename):
os.remove(self.filename)
- # First create an intermediate, uncompressed image. We do this as otherwise it often happens that
- # hdiutils fails with the message "no space left on device" which doesn't seem to appear without compression
- intermediateName = self.filename.replace(".dmg", "_intermediate.dmg")
p = Popen(['hdiutil', 'create',
'-srcfolder', self.tmp,
- '-format', 'UDRW',
- '-volname', self.volname,
- '-verbose',
- intermediateName])
- retval = p.wait()
- if retval != 0:
- raise Exception("Creating intermediate dmg file failed")
-
- # Now take that intermediate and compress it
- p = Popen(['hdiutil', 'convert',
- intermediateName,
'-format', 'UDBZ',
- '-verbose', '-o',
+ '-volname', self.volname,
self.filename])
retval = p.wait()
- if retval != 0:
- raise Exception("Compressing dmg file failed")
print ' * Removing temporary directory.'
shutil.rmtree(self.tmp)
print ' * Done!'