Fix make deploy error on macos (#2475)

This commit is contained in:
UdjinM6 2018-11-23 17:41:39 +03:00 committed by Alexander Block
parent f4ef388dea
commit 6c190d1bb3

View File

@ -850,6 +850,7 @@ if config.dmg is not None:
print("Running AppleScript:")
print(s)
time.sleep(2) # fixes '112:116: execution error: Finder got an error: Cant get disk "Dash-Core". (-1728)'
p = subprocess.Popen(['osascript', '-'], stdin=subprocess.PIPE)
p.communicate(input=s.encode('utf-8'))
if p.returncode: