diff --git a/scripts/osx-dmg.sh b/scripts/osx-dmg.sh index 0e6d6565d..801c35f1c 100755 --- a/scripts/osx-dmg.sh +++ b/scripts/osx-dmg.sh @@ -21,6 +21,13 @@ if ! test -d "${PKG_DIR}"; then exit 1; fi +if ! perl -e 'require Mac::Finder::DSStore' > /dev/null 2>&1; then + echo + echo "Perl Mac::Finder::DSStore is required to build a dmg." + echo "Please get it from http://freehg.org/u/wiml/dsstore/" + exit; +fi + rm -rf ${TMP_DMG} "${PKG_NAME}.dmg" mkdir -v ${TMP_DMG} echo