summaryrefslogtreecommitdiff
path: root/Packaging
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2014-09-29 08:42:49 -0400
committerBrad King <brad.king@kitware.com>2015-11-13 08:46:54 -0500
commit4bca9401269878d2f3b0465377f0fb8bce87c734 (patch)
tree4ca849ce697e7f43333fb35ae25a39a266741976 /Packaging
parentc4b9ee1878c62a272d38ae057e0a76409be54e8f (diff)
downloadcmake-4bca9401269878d2f3b0465377f0fb8bce87c734.tar.gz
Improve appearance of CMake .dmg package on OS X
Configure our use of the CPack DragNDrop generator to specify a custom background image and script.
Diffstat (limited to 'Packaging')
-rw-r--r--Packaging/CMakeDMGBackground.tifbin0 -> 95690 bytes
-rw-r--r--Packaging/CMakeDMGSetup.scpt42
2 files changed, 42 insertions, 0 deletions
diff --git a/Packaging/CMakeDMGBackground.tif b/Packaging/CMakeDMGBackground.tif
new file mode 100644
index 0000000000..91c4b1309b
--- /dev/null
+++ b/Packaging/CMakeDMGBackground.tif
Binary files differ
diff --git a/Packaging/CMakeDMGSetup.scpt b/Packaging/CMakeDMGSetup.scpt
new file mode 100644
index 0000000000..c7ddcfb282
--- /dev/null
+++ b/Packaging/CMakeDMGSetup.scpt
@@ -0,0 +1,42 @@
+on run argv
+ set image_name to item 1 of argv
+
+ tell application "Finder"
+ tell disk image_name
+
+ -- 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 1
+ 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, 900, 465 }
+ set position of item "CMake.app" to { 133, 200 }
+ set position of item "Applications" to { 378, 200 }
+ end tell
+ update without registering applications
+ delay 1
+ close
+
+ -- one last open and close so you can see everything looks correct
+ open
+ delay 5
+ close
+
+ end tell
+ delay 1
+end tell
+end run