mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix upload script
This commit is contained in:
parent
54be02b861
commit
4abdc096af
@ -47,16 +47,14 @@ def build_osx():
|
||||
vm.powerOn()
|
||||
c = 25 * 60
|
||||
print 'Waiting (minutes):',
|
||||
while c > 0:
|
||||
if glob.glob('dist/*.dmg'):
|
||||
break
|
||||
while c > 0 and not os.path.exists('dist/dmgdone'):
|
||||
time.sleep(10)
|
||||
c -= 10
|
||||
if c%60==0:
|
||||
print c, ',',
|
||||
print c/60, ',',
|
||||
print
|
||||
|
||||
if not glob.glob('dist/dmgdone'):
|
||||
if not os.path.exists('dist/dmgdone'):
|
||||
raise Exception('OSX build has failed')
|
||||
vm.powerOff()
|
||||
return os.path.basename(glob.glob('dist/*.dmg')[-1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user