name = Maps;
productName = "Create Maps";
};
- 815FFC680AEA2FB000AFD07F /* Sparse Disk Image */ = {
+ 815FFC680AEA2FB000AFD07F /* Disk Image */ = {
isa = PBXAggregateTarget;
- buildConfigurationList = 815FFC7C0AEA2FBF00AFD07F /* Build configuration list for PBXAggregateTarget "Sparse Disk Image" */;
+ buildConfigurationList = 815FFC7C0AEA2FBF00AFD07F /* Build configuration list for PBXAggregateTarget "Disk Image" */;
buildPhases = (
8137FDB80AEBFFC3009172EC /* ShellScript */,
);
81D0B2E80AEE42C90041CE19 /* PBXTargetDependency */,
81D0B2EA0AEE42CC0041CE19 /* PBXTargetDependency */,
);
- name = "Sparse Disk Image";
+ name = "Disk Image";
productName = Dmg;
};
- 81D0B4070AEE70150041CE19 /* Compressed Disk Image */ = {
- isa = PBXAggregateTarget;
- buildConfigurationList = 81D0B40C0AEE704F0041CE19 /* Build configuration list for PBXAggregateTarget "Compressed Disk Image" */;
- buildPhases = (
- 81D0B40A0AEE70300041CE19 /* ShellScript */,
- );
- dependencies = (
- );
- name = "Compressed Disk Image";
- productName = "Compressed Disk Image";
- };
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
projectDirPath = "";
projectRoot = "";
targets = (
- 81D0B4070AEE70150041CE19 /* Compressed Disk Image */,
- 815FFC680AEA2FB000AFD07F /* Sparse Disk Image */,
+ 815FFC680AEA2FB000AFD07F /* Disk Image */,
815FFCD50AEA319B00AFD07F /* Neverball */,
815FFC930AEA305100AFD07F /* Neverputt */,
815FFC630AEA2F4900AFD07F /* Maps */,
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Modified from \"Battle for Wesnoth\" building stuff\nset -e \n\necho \"***\"\necho \"*** Installing ressources...\"\necho \"***\"\n\nRESOURCESDIR=\"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/Resources\"\nmkdir -p ${RESOURCESDIR}\n\necho -n \"+ copying translations... \"\ncp -rp \"${TARGET_BUILD_DIR}/locale\" ${RESOURCESDIR}\necho ok\n\necho -n \"+ gathering docs...\"\nROOTDIR=\"${TARGET_BUILD_DIR}/../../../..\"\nmkdir -p ${TARGET_BUILD_DIR}/docs\n\nfor i in \"CHANGES\" \"COPYING\" \"INSTALL\" \"README\" \ndo\ncp \"${ROOTDIR}/$i\" \"${TARGET_BUILD_DIR}/docs/\"\ndone\n\nfor i in \"AUTHORS\" \"MANUAL\" \"translations.html\"\ndo\ncp \"${ROOTDIR}/doc/$i\" \"${TARGET_BUILD_DIR}/docs/\"\ndone\n\necho ok\n\necho -n \"+ copying mapc... \"\ncp \"${TARGET_BUILD_DIR}/mapc\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/MacOS\"\necho ok\n\necho -n \"+ cleaning the ressources...\"\nrm -f ${RESOURCESDIR}/locale/.ok\nfind . -name .DS_Store -print0 | xargs -0 rm\necho ok\n\n#echo -n \"+ create a symlink for data...\"\n#test -L ${TARGET_BUILD_DIR}/data || ln -s ${SRCROOT}/../../data ${TARGET_BUILD_DIR}/data\n#echo ok\n";
+ shellScript = "set -e \n\necho \"***\"\necho \"*** Installing resources...\"\necho \"***\"\n\nRESOURCESDIR=\"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/Resources\"\nmkdir -p ${RESOURCESDIR}\n\necho -n \"+ copying translations... \"\ncp -rp \"${TARGET_BUILD_DIR}/locale\" ${RESOURCESDIR}\necho ok\n\necho -n \"+ gathering docs...\"\nROOTDIR=\"${TARGET_BUILD_DIR}/../../../..\"\nmkdir -p ${TARGET_BUILD_DIR}/docs\n\nfor i in \"CHANGES\" \"COPYING\" \"INSTALL\" \"README\" \ndo\ncp \"${ROOTDIR}/$i\" \"${TARGET_BUILD_DIR}/docs/\"\ndone\n\nfor i in \"AUTHORS\" \"MANUAL\" \"translations.html\"\ndo\ncp \"${ROOTDIR}/doc/$i\" \"${TARGET_BUILD_DIR}/docs/\"\ndone\n\necho ok\n\necho -n \"+ copying mapc... \"\ncp \"${TARGET_BUILD_DIR}/mapc\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/MacOS\"\necho ok\n\necho -n \"+ cleaning the resources...\"\nrm -f ${RESOURCESDIR}/locale/.ok\nfind . -name .DS_Store -print0 | xargs -0 rm\necho ok\n\n#echo -n \"+ create a symlink for data...\"\n#test -L ${TARGET_BUILD_DIR}/data || ln -s ${SRCROOT}/../../data ${TARGET_BUILD_DIR}/data\n#echo ok\n";
};
8137FD740AEBE7F4009172EC /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Modified from \"Battle for Wesnoth\" building stuff\nset -e \n\necho \"***\"\necho \"*** Installing ressources...\"\necho \"***\"\n\n\nRESOURCESDIR=\"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/Resources\"\nmkdir -p ${RESOURCESDIR}\n\necho -n \"+ copying translations... \"\ncp -rp \"${TARGET_BUILD_DIR}/locale\" ${RESOURCESDIR}\necho ok\n\necho -n \"+ copying mapc... \"\ncp \"${TARGET_BUILD_DIR}/mapc\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/MacOS\"\necho ok\n\necho -n \"+ cleaning the ressources...\"\nrm -f ${RESOURCESDIR}/locale/.ok\nfind . -name .DS_Store -print0 | xargs -0 rm\necho ok\n\n#echo -n \"+ create a symlink for data...\"\n#test -L ${TARGET_BUILD_DIR}/data || ln -s ${SRCROOT}/../../data ${TARGET_BUILD_DIR}/data\n#echo ok\n\n";
+ shellScript = "set -e \n\necho \"***\"\necho \"*** Installing resources...\"\necho \"***\"\n\n\nRESOURCESDIR=\"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/Resources\"\nmkdir -p ${RESOURCESDIR}\n\necho -n \"+ copying translations... \"\ncp -rp \"${TARGET_BUILD_DIR}/locale\" ${RESOURCESDIR}\necho ok\n\necho -n \"+ copying mapc... \"\ncp \"${TARGET_BUILD_DIR}/mapc\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/Contents/MacOS\"\necho ok\n\necho -n \"+ cleaning the resources...\"\nrm -f ${RESOURCESDIR}/locale/.ok\nfind . -name .DS_Store -print0 | xargs -0 rm\necho ok\n\n#echo -n \"+ create a symlink for data...\"\n#test -L ${TARGET_BUILD_DIR}/data || ln -s ${SRCROOT}/../../data ${TARGET_BUILD_DIR}/data\n#echo ok\n\n";
};
8137FDB80AEBFFC3009172EC /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Create a dmg\n# \n# Modified from \"Battle for Wesnoth\" building stuff\n\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\nVERSION=\"1.5.0-r${SVN_REVISION}\"\n# VERSION=\"1.5.0\"\nNAME=\"Neverball-$VERSION\"\n\necho \"*** Building disk image...\"\n\nimage_rw=\"${BUILT_PRODUCTS_DIR}/Neverball-${VERSION}.sparseimage\"\nimage_ro=\"${BUILT_PRODUCTS_DIR}/Neverball-${VERSION}.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\nfor app in \"Neverball\" \"Neverputt\"\ndo \n echo \"+ Copying $app\"\n cp -Rp \"${BUILT_PRODUCTS_DIR}/${app}.app\" \"$MOUNTPOINT/.\"\n strip \"$MOUNTPOINT/${app}.app/Contents/MacOS/${app}\"\n rm -fr \"$MOUNTPOINT/${app}.app/\"Contents/Frameworks/*.framework/Versions/*/Headers\n rm -fr \"$MOUNTPOINT/${app}.app/\"Contents/Frameworks/*.framework/Headers\ndone\n\necho \"+ Copying data\"\ncp -Rp \"${BUILT_PRODUCTS_DIR}/data\" \"${MOUNTPOINT}/.\"\n\necho \"+ Copying docs\"\nmkdir \"${MOUNTPOINT}/docs\"\ncp -Rp \"${BUILT_PRODUCTS_DIR}/docs\" \"${MOUNTPOINT}/.\"\n\necho \"+ Cleaning image before read-only\"\nrm -f \"${MOUNTPOINT}/data/.ok\"\nrm -f \"${MOUNTPOINT}/data/.ok\"\n\n#echo \"+ Install disk icon\"\n# iconfile=\"shield.icns\"\n#cp \"$iconfile\" \"$mountpoint/.VolumeIcon.icns\"\n#/Developer/Tools/SetFile -a aVbstclinmedz \"$MOUNTPOINT/.VolumeIcon.icns\"\n\necho \"+ Install background dmg\"\nmkdir -p \"${MOUNTPOINT}/data/osx\"\ncp \"${SRCROOT}/../icons/dmg-background.jpg\" \"${MOUNTPOINT}/data/osx/\"\n\necho \"+ set the presentation\"\n# better to copy this in script editor for change...\nosascript - \"$MOUNTPOINT\" <<!\non run argv\n--\tset dir to \"/Volumes/Wesnoth 0.9.5\"\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 \"data:osx:dmg-background.jpg\" 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 70\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.app\" of f to {94, 245}\n\t\tset position of item \"data\" of f to {220, 245}\n\t\tset position of item \"docs\" of f to {220, 145}\n\t\tset position of item \"Neverputt.app\" of f to {352, 245}\n\t\tset the bounds of w to {100, 100, 560, 430}\n\t\tdelay 5\n\tend tell\nend run\n!\n\necho \"+ Detaching '$NAME' image\"\nhdiutil detach \"$MOUNTPOINT\"\n\n#open \"$image_rw\"\n\n#echo \"+ Compressing disk image\"\n#rm \"$image_ro\" 2>/dev/null || true\n#hdiutil convert \"$image_rw\" -imagekey zlib-level=9 -format UDZO -o \"$image_ro\"\n\n#rm \"$image_rw\"\n\n# open the result in Finder\n#open \"$image_ro\"\n";
- };
- 81D0B40A0AEE70300041CE19 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "set -e # exit on error\n\nimage_rw=`ls -t ${BUILT_PRODUCTS_DIR}/*.sparseimage | head -1`\nimage_ro=`echo ${image_rw} | sed -e 's/sparseimage/dmg/g'`\n\necho \"*** Compressing $image_rw into $image_ro\"\n\nhdiutil convert ${image_rw} -imagekey zlib-level=9 -format UDZO -o ${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\nVERSION=\"v1.5.0 r${SVN_REVISION}\"\n# VERSION=\"1.5.0\"\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}/${NAME}.mpkg\"\nsh ../modify_neverball_pkg_installer.sh \"${BUILT_PRODUCTS_DIR}/${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}/${NAME}.mpkg\" \"${MOUNTPOINT}/${NAME}.mpkg\"\ncp -R \"${BUILT_PRODUCTS_DIR}/Uninstall Neverball.mpkg\" \"${MOUNTPOINT}/Uninstall Neverball.mpkg\"\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.jpg\" \"${MOUNTPOINT}/dmg-background.jpg\"\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.jpg\" 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 70\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 \"${NAME}.mpkg\" of f to {94, 245}\n#\t\tset position of item \"data\" of f to {220, 245}\n#\t\tset position of item \"docs\" of f to {220, 145}\n\t\tset position of item \"Uninstall Neverball.mpkg\" of f to {352, 245}\n\t\tset the bounds of w to {100, 100, 560, 430}\n\t\tdelay 5\n\tend tell\nend run\n!\n\nsetfile -a V \"${MOUNTPOINT}/dmg-background.jpg\"\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 */
};
name = Deployment;
};
- 81D0B40D0AEE704F0041CE19 /* Development */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- PRODUCT_NAME = "Compressed Disk Image";
- };
- name = Development;
- };
- 81D0B40E0AEE704F0041CE19 /* Deployment */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- GCC_ENABLE_FIX_AND_CONTINUE = NO;
- GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
- PRODUCT_NAME = "Compressed Disk Image";
- ZERO_LINK = NO;
- };
- name = Deployment;
- };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Development;
};
- 815FFC7C0AEA2FBF00AFD07F /* Build configuration list for PBXAggregateTarget "Sparse Disk Image" */ = {
+ 815FFC7C0AEA2FBF00AFD07F /* Build configuration list for PBXAggregateTarget "Disk Image" */ = {
isa = XCConfigurationList;
buildConfigurations = (
815FFC7D0AEA2FBF00AFD07F /* Development */,
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Development;
};
- 81D0B40C0AEE704F0041CE19 /* Build configuration list for PBXAggregateTarget "Compressed Disk Image" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 81D0B40D0AEE704F0041CE19 /* Development */,
- 81D0B40E0AEE704F0041CE19 /* Deployment */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Development;
- };
/* End XCConfigurationList section */
};
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;