mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Merge PR #4426: FIX(packaging): Enable mac-script to run multiple times
This commit is contained in:
commit
b7e8db2ad1
@ -136,7 +136,8 @@ class AppBundle(object):
|
||||
'''
|
||||
print ' * Attempting to copy audio codec libraries into App Bundle'
|
||||
dst = os.path.join(self.bundle, 'Contents', 'Codecs')
|
||||
os.makedirs(dst)
|
||||
if not os.path.exists(dst):
|
||||
os.makedirs(dst)
|
||||
codecs = (os.path.join(options.binary_dir, 'libcelt0.0.7.0.dylib'), os.path.join(options.binary_dir, 'libopus.dylib'))
|
||||
for codec in codecs:
|
||||
if os.path.exists(codec):
|
||||
@ -247,7 +248,7 @@ class DiskImage(FolderObject):
|
||||
'''
|
||||
print ' * Creating diskimage. Please wait...'
|
||||
if os.path.exists(self.filename):
|
||||
shutil.rmtree(self.filename)
|
||||
os.remove(self.filename)
|
||||
p = Popen(['hdiutil', 'create',
|
||||
'-srcfolder', self.tmp,
|
||||
'-format', 'UDBZ',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user