Some DMG changes for final 1.5.0 release...
authorjammnrose <jammnrose@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 31 Jan 2009 04:29:05 +0000 (04:29 +0000)
committerjammnrose <jammnrose@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 31 Jan 2009 04:29:05 +0000 (04:29 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2748 78b8d119-cf0a-0410-b17c-f493084dd1d7

macosx/Run Webloc.app [new file with mode: 0755]
macosx/icons/dmg-background.png
macosx/icons/dmg-background.psd
macosx/neverball.org.webloc [new file with mode: 0644]
macosx/xcode/neverball.xcodeproj/project.pbxproj

diff --git a/macosx/Run Webloc.app b/macosx/Run Webloc.app
new file mode 100755 (executable)
index 0000000..d07649a
Binary files /dev/null and b/macosx/Run Webloc.app differ
index 3aa491a..4fd9cad 100644 (file)
Binary files a/macosx/icons/dmg-background.png and b/macosx/icons/dmg-background.png differ
index ef7ecca..0f1f5e3 100644 (file)
Binary files a/macosx/icons/dmg-background.psd and b/macosx/icons/dmg-background.psd differ
diff --git a/macosx/neverball.org.webloc b/macosx/neverball.org.webloc
new file mode 100644 (file)
index 0000000..e6b062b
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>URL</key>
+       <string>http://neverball.org/</string>
+</dict>
+</plist>
index 1af04e3..7ce7ad0 100644 (file)
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                        shellPath = /bin/sh;
-                       shellScript = "# Build Neverball Installer and package to a dmg.\n# set -x # uncomment for debugging\nset -e # exit on error\n\nSVN_REVISION=`cd ${SRCROOT}/../.. && /usr/local/bin/svn info | grep Revision: | cut -d\\  -f2`\nSVN_REVISION=`echo ${SVN_REVISION} | sed -e 's/\\ //g'`\necho \"*** SVN REV : ${SVN_REVISION}\"\n\nBASE_VERSION=\"v1.5.0\"\nVERSION=\"${BASE_VERSION} r${SVN_REVISION}\"\n#VERSION=\"${BASE_VERSION}\"\nBASE_NAME=\"Neverball $BASE_VERSION\"\nNAME=\"Neverball $VERSION\"\n\nfor app in \"Neverball\" \"Neverputt\"\ndo\n  echo \"+ Cleaning $app\"\n  strip \"${BUILT_PRODUCTS_DIR}/${app}.app/Contents/MacOS/${app}\"\n  rm -fr \"${BUILT_PRODUCTS_DIR}/${app}.app/\"Contents/Frameworks/*.framework/Versions/*/Headers\n  rm -fr \"${BUILT_PRODUCTS_DIR}/${app}.app/\"Contents/Frameworks/*.framework/Headers\ndone\n\necho \"+ Cleaning data\"\nrm -f \"${BUILT_PRODUCTS_DIR}/data/.ok\"\nrm -f \"${BUILT_PRODUCTS_DIR}/data/.ok\"\n\necho \"Building installer and uninstaller...\"\n/Developer/usr/bin/packagemaker -d \"../uninstall.pmdoc\" -o \"${BUILT_PRODUCTS_DIR}/Uninstall Neverball.mpkg\" -i org.neverball.Uninstall.pkg\nsh ../modify_neverball_pkg_uninstaller.sh \"${BUILT_PRODUCTS_DIR}/Uninstall Neverball.mpkg\"\n/Developer/usr/bin/packagemaker -d \"../neverball.pmdoc\" -o \"${BUILT_PRODUCTS_DIR}/${BASE_NAME}.mpkg\"\nsh ../modify_neverball_pkg_installer.sh \"${BUILT_PRODUCTS_DIR}/${BASE_NAME}.mpkg\"\n\necho \"*** Building disk image...\"\n\nimage_rw=\"${BUILT_PRODUCTS_DIR}/${NAME}.sparseimage\"\nimage_ro=\"${BUILT_PRODUCTS_DIR}/${NAME}.dmg\"\n\nMOUNTPOINT=\"/Volumes/$NAME\"\ntest -e \"$MOUNTPOINT\" && {\n  echo \"$MOUNTPOINT already mounted. Please, detach it.\" 1>&2\n  exit 1\n}\n\nrm \"$image_rw\" 2>/dev/null || true\nhdiutil create -type SPARSE -fs HFS+ -volname \"$NAME\" \"$image_rw\"\nhdiutil attach \"$image_rw\"\n\ncp -R \"${BUILT_PRODUCTS_DIR}/${BASE_NAME}.mpkg\" \"${MOUNTPOINT}/${BASE_NAME}.mpkg\"\ncp ../Run\\ Installer.app \"${MOUNTPOINT}/ \"\n#ln -s \"${MOUNTPOINT}/${BASE_NAME}.mpkg\" \"${MOUNTPOINT}/ \"\n\n#echo \"+ Install disk icon\"\n#iconfile=\"icon.icns\"\n#cp \"$iconfile\" \"$mountpoint/.VolumeIcon.icns\"\n#/Developer/Tools/SetFile -a aVbstclinmedz \"$MOUNTPOINT/.VolumeIcon.icns\"\n\necho \"+ Install background dmg\"\ncp \"${SRCROOT}/../icons/dmg-background.png\" \"${MOUNTPOINT}/dmg-background.png\"\n\necho \"+ set the presentation\"\n# better to copy this in script editor for change...\nosascript - \"$MOUNTPOINT\" <<!\non run argv\n\tset dir to item 1 of argv\n\ttell application \"Finder\"\n\t\tset f to POSIX file dir as alias\n\t\topen f\n\n\t\tset w to container window of f\n\n\t\tset current view of w to icon view\n\t\tset toolbar visible of w to false\n\t\tset statusbar visible of w to false\n\t\tset opts to icon view options of w\n\t\tset bgfile to file \"dmg-background.png\" of folder f\n\t\t\n\t\t--\tset background color of opts to {50000, 50000, 50000}\n\t\tset background picture of opts to bgfile\n\t\tset icon size of opts to 96\n\t\tset text size of opts to 12\n\t\tset label position of opts to bottom\n\t\tset arrangement of opts to not arranged\n\t\tset position of item \"${BASE_NAME}.mpkg\" of f to {64 + 48, 214 + 40}\n\t\tset position of item \" \" of f to {64 + 48, 214 + 40}\n#\t\tset position of item \"\" of f to {224 + 48, 214 + 40}\n#\t\tset label index of file \"${BASE_NAME}.mpkg\" of folder f to 7\n\t\tset the bounds of w to {100, 100, 484, 604}\n\t\tdelay 5\n\tend tell\nend run\n!\n\nSETICON=/opt/local/bin/seticon #change this if seticon resides in a different location\nMPKGICON=$(ls -kS $(locate metapackage.icns) | head -1)\n${SETICON} -d ${MPKGICON} \"${MOUNTPOINT}/ \"\nsetfile -a V \"${MOUNTPOINT}/dmg-background.png\"\nsetfile -a V \"${MOUNTPOINT}/${BASE_NAME}.mpkg\"\n\n\necho \"+ Detaching '$NAME' image\"\nhdiutil detach \"$MOUNTPOINT\"\n\n#open \"$image_rw\"\n\necho \"+ Compressing disk image\"\nrm \"$image_ro\" 2>/dev/null || true\nhdiutil convert \"$image_rw\" -imagekey zlib-level=9 -format UDZO -o \"$image_ro\"\n\nrm \"$image_rw\"\n\n# open the result in Finder\nopen \"$image_ro\"\n";
+                       shellScript = "# Build Neverball Installer and package to a dmg.\n# set -x # uncomment for debugging\nset -e # exit on error\n\nSVN_REVISION=`cd ${SRCROOT}/../.. && /usr/local/bin/svn info | grep Revision: | cut -d\\  -f2`\nSVN_REVISION=`echo ${SVN_REVISION} | sed -e 's/\\ //g'`\necho \"*** SVN REV : ${SVN_REVISION}\"\n\nBASE_VERSION=\"v1.5.0\"\n#VERSION=\"${BASE_VERSION} r${SVN_REVISION}\"\nVERSION=\"${BASE_VERSION}\"\nBASE_NAME=\"Neverball $BASE_VERSION\"\nNAME=\"Neverball $VERSION\"\n\nfor app in \"Neverball\" \"Neverputt\"\ndo\n  echo \"+ Cleaning $app\"\n  strip \"${BUILT_PRODUCTS_DIR}/${app}.app/Contents/MacOS/${app}\"\n  rm -fr \"${BUILT_PRODUCTS_DIR}/${app}.app/\"Contents/Frameworks/*.framework/Versions/*/Headers\n  rm -fr \"${BUILT_PRODUCTS_DIR}/${app}.app/\"Contents/Frameworks/*.framework/Headers\ndone\n\necho \"+ Cleaning data\"\nrm -f \"${BUILT_PRODUCTS_DIR}/data/.ok\"\nrm -f \"${BUILT_PRODUCTS_DIR}/data/.ok\"\n\necho \"Building installer and uninstaller...\"\n/Developer/usr/bin/packagemaker -d \"../uninstall.pmdoc\" -o \"${BUILT_PRODUCTS_DIR}/Uninstall Neverball.mpkg\" -i org.neverball.Uninstall.pkg\nsh ../modify_neverball_pkg_uninstaller.sh \"${BUILT_PRODUCTS_DIR}/Uninstall Neverball.mpkg\"\n/Developer/usr/bin/packagemaker -d \"../neverball.pmdoc\" -o \"${BUILT_PRODUCTS_DIR}/${BASE_NAME}.mpkg\"\nsh ../modify_neverball_pkg_installer.sh \"${BUILT_PRODUCTS_DIR}/${BASE_NAME}.mpkg\"\n\necho \"*** Building disk image...\"\n\nimage_rw=\"${BUILT_PRODUCTS_DIR}/${NAME}.sparseimage\"\nimage_ro=\"${BUILT_PRODUCTS_DIR}/${NAME}.dmg\"\n\nMOUNTPOINT=\"/Volumes/$NAME\"\ntest -e \"$MOUNTPOINT\" && {\n  echo \"$MOUNTPOINT already mounted. Please, detach it.\" 1>&2\n  exit 1\n}\n\nrm \"$image_rw\" 2>/dev/null || true\nhdiutil create -type SPARSE -fs HFS+ -volname \"$NAME\" \"$image_rw\"\nhdiutil attach \"$image_rw\"\n\ncp -R \"${BUILT_PRODUCTS_DIR}/${BASE_NAME}.mpkg\" \"${MOUNTPOINT}/${BASE_NAME}.mpkg\"\ncp ../Run\\ Installer.app \"${MOUNTPOINT}/ \"\n#ln -s \"${MOUNTPOINT}/${BASE_NAME}.mpkg\" \"${MOUNTPOINT}/ \"\n\ncp ../neverball.org.webloc \"${MOUNTPOINT}/neverball.org.webloc\"\ncp ../Run\\ Webloc.app \"${MOUNTPOINT}/  \"\n\n#echo \"+ Install disk icon\"\n#iconfile=\"icon.icns\"\n#cp \"$iconfile\" \"$mountpoint/.VolumeIcon.icns\"\n#/Developer/Tools/SetFile -a aVbstclinmedz \"$MOUNTPOINT/.VolumeIcon.icns\"\n\necho \"+ Install background dmg\"\ncp \"${SRCROOT}/../icons/dmg-background.png\" \"${MOUNTPOINT}/dmg-background.png\"\n\necho \"+ set the presentation\"\n# better to copy this in script editor for change...\nosascript - \"$MOUNTPOINT\" <<!\non run argv\n\tset dir to item 1 of argv\n\ttell application \"Finder\"\n\t\tset f to POSIX file dir as alias\n\t\topen f\n\n\t\tset w to container window of f\n\n\t\tset current view of w to icon view\n\t\tset toolbar visible of w to false\n\t\tset statusbar visible of w to false\n\t\tset opts to icon view options of w\n\t\tset bgfile to file \"dmg-background.png\" of folder f\n\t\t\n\t\t--\tset background color of opts to {50000, 50000, 50000}\n\t\tset background picture of opts to bgfile\n\t\tset icon size of opts to 96\n\t\tset text size of opts to 12\n\t\tset label position of opts to bottom\n\t\tset arrangement of opts to not arranged\n\t\tset position of item \"neverball.org.webloc\" of f to {384/2 - (96 + 20), 214 + 40}\n\t\tset position of item \"  \" of f to {384/2 - (96 + 20), 214 + 40}\n\t\tset position of item \"${BASE_NAME}.mpkg\" of f to {384/2, 214 + 40}\n\t\tset position of item \" \" of f to {384/2, 214 + 40}\n#\t\tset position of item \"\" of f to {224 + 48, 214 + 40}\n#\t\tset label index of file \"${BASE_NAME}.mpkg\" of folder f to 7\n\t\tset the bounds of w to {100, 100, 484, 604}\n\t\tdelay 5\n\tend tell\nend run\n!\n\nSETICON=/opt/local/bin/seticon #change this if seticon resides in a different location\nMPKGICON=$(ls -kS $(locate metapackage.icns) | head -1)\nWEBLOCICON=$(ls -kr $(locate InternetLocationHTTP.icns) | head -1)\n${SETICON} -d ${MPKGICON} \"${MOUNTPOINT}/ \"\n${SETICON} -d ${WEBLOCICON} \"${MOUNTPOINT}/  \"\nsetfile -a V \"${MOUNTPOINT}/dmg-background.png\"\nsetfile -a V \"${MOUNTPOINT}/${BASE_NAME}.mpkg\"\nsetfile -a V \"${MOUNTPOINT}/neverball.org.webloc\"\n\n\necho \"+ Detaching '$NAME' image\"\nhdiutil detach \"$MOUNTPOINT\"\n\n#open \"$image_rw\"\n\necho \"+ Compressing disk image\"\nrm \"$image_ro\" 2>/dev/null || true\nhdiutil convert \"$image_rw\" -imagekey zlib-level=9 -format UDZO -o \"$image_ro\"\n\nrm \"$image_rw\"\n\n# open the result in Finder\nopen \"$image_ro\"\n";
                };
 /* End PBXShellScriptBuildPhase section */
 
                                        "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
                                        "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
                                );
-                               OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DCONFIG_LOCALE=\\\"Neverputt.app/Contents/Resources/locale\\\"";
+                               OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DCONFIG_LOCALE=\\\"Neverputt.app/Contents/Resources/locale\\\" -DVERSION=\\\"1.5.0\\\"";
                                OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DCONFIG_DATA=\\\"/Library/Application\\ Support/Neverball\\ Data/data\\\"";
                                OTHER_LDFLAGS = (
                                        "-Z",
                                        "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_1)",
                                        "$(OTHER_CFLAGS_QUOTED_FOR_TARGET_2)",
                                );
-                               OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DCONFIG_LOCALE=\\\"Neverball.app/Contents/Resources/locale\\\"";
+                               OTHER_CFLAGS_QUOTED_FOR_TARGET_1 = "-DCONFIG_LOCALE=\\\"Neverball.app/Contents/Resources/locale\\\" -DVERSION=\\\"1.5.0\\\"";
                                OTHER_CFLAGS_QUOTED_FOR_TARGET_2 = "-DCONFIG_DATA=\\\"/Library/Application\\ Support/Neverball\\ Data/data\\\"";
                                OTHER_CPLUSPLUSFLAGS = "$(OTHER_CPLUSPLUSFLAGS)";
                                OTHER_LDFLAGS = (