src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/DMGsetup.scpt
branchJDK-8200758-branch
changeset 58306 42c7f9800e30
parent 57530 9063613e9bb1
child 58583 b54f1adbf153
equal deleted inserted replaced
58305:d42b1f6960aa 58306:42c7f9800e30
     1 (* this script intentionally empty by default *)
     1 tell application "Finder"
       
     2   tell disk "DEPLOY_ACTUAL_VOLUME_NAME"
       
     3     open
       
     4     set current view of container window to icon view
       
     5     set toolbar visible of container window to false
       
     6     set statusbar visible of container window to false
     2 
     7 
       
     8     -- size of window should match size of background
       
     9     set the bounds of container window to {400, 100, 917, 380}
       
    10 
       
    11     set theViewOptions to the icon view options of container window
       
    12     set arrangement of theViewOptions to not arranged
       
    13     set icon size of theViewOptions to 128
       
    14     set background picture of theViewOptions to file ".background:background.png"
       
    15 
       
    16     -- Create alias for install location
       
    17     make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"}
       
    18 
       
    19     set allTheFiles to the name of every item of container window
       
    20     repeat with theFile in allTheFiles
       
    21       set theFilePath to POSIX Path of theFile
       
    22       if theFilePath is "/DEPLOY_APPLICATION_NAME.app"
       
    23         -- Position application location
       
    24         set position of item theFile of container window to {120, 60}
       
    25       else if theFilePath is "/DEPLOY_INSTALL_NAME"
       
    26         -- Position install location
       
    27         set position of item theFile of container window to {390, 60}
       
    28       else
       
    29         -- Move all other files far enough to be not visible if user has "show hidden files" option set
       
    30         set position of item theFile of container window to {1000, 0}
       
    31       end
       
    32     end repeat
       
    33 
       
    34     update without registering applications
       
    35     delay 5
       
    36     close
       
    37   end tell
       
    38 end tell