Browse Source

Mitigate macOS race condition in installer build (GH-6686)

pull/6678/merge
Ned Deily 8 years ago
committed by GitHub
parent
commit
fc6aa28bfd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Mac/BuildScript/build-installer.py

4
Mac/BuildScript/build-installer.py

@ -1524,6 +1524,10 @@ def buildDMG():
shellQuote(os.path.join(WORKDIR, 'installer')),
shellQuote(imagepath + ".tmp.dmg" )))
# Try to mitigate race condition in certain versions of macOS, e.g. 10.9,
# when hdiutil fails with "Resource busy"
time.sleep(10)
if not os.path.exists(os.path.join(WORKDIR, "mnt")):
os.mkdir(os.path.join(WORKDIR, "mnt"))

Loading…
Cancel
Save