mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
Revert timeout change
This commit is contained in:
parent
a729b47f74
commit
ead88bc4a4
1 changed files with 47 additions and 51 deletions
|
|
@ -1,58 +1,54 @@
|
||||||
on run argv
|
on run argv
|
||||||
set image_name to item 1 of argv
|
set image_name to item 1 of argv
|
||||||
|
|
||||||
-- Increase timeout from default 120 seconds to 600 seconds
|
tell application "Finder"
|
||||||
-- to account for slower CI environments (especially Intel runners)
|
tell disk image_name
|
||||||
with timeout of 600 seconds
|
|
||||||
tell application "Finder"
|
|
||||||
tell disk image_name
|
|
||||||
|
|
||||||
-- wait for the image to finish mounting
|
-- wait for the image to finish mounting
|
||||||
set open_attempts to 0
|
set open_attempts to 0
|
||||||
repeat while open_attempts < 4
|
repeat while open_attempts < 4
|
||||||
try
|
try
|
||||||
open
|
open
|
||||||
delay 1
|
|
||||||
set open_attempts to 5
|
|
||||||
close
|
|
||||||
on error errStr number errorNumber
|
|
||||||
set open_attempts to open_attempts + 1
|
|
||||||
delay 10
|
|
||||||
end try
|
|
||||||
end repeat
|
|
||||||
delay 5
|
|
||||||
|
|
||||||
-- open the image the first time and save a DS_Store with just
|
|
||||||
-- background and icon setup
|
|
||||||
open
|
|
||||||
set current view of container window to icon view
|
|
||||||
set theViewOptions to the icon view options of container window
|
|
||||||
set background picture of theViewOptions to file ".background:background.tif"
|
|
||||||
set arrangement of theViewOptions to not arranged
|
|
||||||
set icon size of theViewOptions to 128
|
|
||||||
delay 5
|
|
||||||
close
|
|
||||||
|
|
||||||
-- next setup the position of the app and Applications symlink
|
|
||||||
-- plus hide all the window decoration
|
|
||||||
open
|
|
||||||
update without registering applications
|
|
||||||
tell container window
|
|
||||||
set sidebar width to 0
|
|
||||||
set statusbar visible to false
|
|
||||||
set toolbar visible to false
|
|
||||||
set the bounds to { 400, 100, 1400, 922 }
|
|
||||||
set position of item "Cockatrice.app" to { 139, 214 }
|
|
||||||
set position of item "Oracle.app" to { 139, 414 }
|
|
||||||
set position of item "Servatrice.app" to { 139, 614 }
|
|
||||||
set position of item "Applications" to { 861, 414 }
|
|
||||||
end tell
|
|
||||||
update without registering applications
|
|
||||||
delay 5
|
|
||||||
close
|
|
||||||
|
|
||||||
end tell
|
|
||||||
delay 1
|
delay 1
|
||||||
|
set open_attempts to 5
|
||||||
|
close
|
||||||
|
on error errStr number errorNumber
|
||||||
|
set open_attempts to open_attempts + 1
|
||||||
|
delay 10
|
||||||
|
end try
|
||||||
|
end repeat
|
||||||
|
delay 5
|
||||||
|
|
||||||
|
-- open the image the first time and save a DS_Store with just
|
||||||
|
-- background and icon setup
|
||||||
|
open
|
||||||
|
set current view of container window to icon view
|
||||||
|
set theViewOptions to the icon view options of container window
|
||||||
|
set background picture of theViewOptions to file ".background:background.tif"
|
||||||
|
set arrangement of theViewOptions to not arranged
|
||||||
|
set icon size of theViewOptions to 128
|
||||||
|
delay 5
|
||||||
|
close
|
||||||
|
|
||||||
|
-- next setup the position of the app and Applications symlink
|
||||||
|
-- plus hide all the window decoration
|
||||||
|
open
|
||||||
|
update without registering applications
|
||||||
|
tell container window
|
||||||
|
set sidebar width to 0
|
||||||
|
set statusbar visible to false
|
||||||
|
set toolbar visible to false
|
||||||
|
set the bounds to { 400, 100, 1400, 922 }
|
||||||
|
set position of item "Cockatrice.app" to { 139, 214 }
|
||||||
|
set position of item "Oracle.app" to { 139, 414 }
|
||||||
|
set position of item "Servatrice.app" to { 139, 614 }
|
||||||
|
set position of item "Applications" to { 861, 414 }
|
||||||
end tell
|
end tell
|
||||||
end timeout
|
update without registering applications
|
||||||
|
delay 5
|
||||||
|
close
|
||||||
|
|
||||||
|
end tell
|
||||||
|
delay 1
|
||||||
|
end tell
|
||||||
end run
|
end run
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue