diff --git a/build/maccreatebundle b/build/maccreatebundle index 8b9f52f3..1f4f5959 100755 --- a/build/maccreatebundle +++ b/build/maccreatebundle @@ -24,6 +24,31 @@ if [ "$1" = "HXCSOFT" ]; then install hxcfloppyemulator ${GUI_PATH}/Contents/MacOS/${GUI_EXEC} install libhxcfe.dylib libusbhxcfe.dylib ${GUI_PATH}/Contents/Frameworks + cat << EOF > ${GUI_PATH}/Contents/info.plist + + + + + CFBundleIdentifier + com.hxc2001.${GUI_EXEC} + CFBundleName + ${NAME} + CFBundlePackageType + APPL + CFBundleVersion + 1 + CFBundleShortVersionString + ${VERSION} + CFBundleIconFile + icons.icns + CFBundleSignature + none + + + EOF + + hdiutil create ${DMGNAME}.dmg -srcfolder ${CLI_PATH} -srcfolder ${GUI_PATH} -ov -volname ${DMGNAME} + fi if [ "$1" = "DOSDISKBROWSER" ]; then @@ -41,29 +66,31 @@ if [ "$1" = "DOSDISKBROWSER" ]; then iconutil --convert icns --output ${GUI_PATH}/Contents/Resources/icons.icns ../HxCFloppyEmulator_software/sources/mac/icons/hxcfloppyemulator.iconset/ install dosdiskbrowser ${GUI_PATH}/Contents/MacOS/${GUI_EXEC} install libhxcfe.dylib ${GUI_PATH}/Contents/Frameworks + + cat << EOF > ${GUI_PATH}/Contents/info.plist + + + + + CFBundleIdentifier + com.hxc2001.${GUI_EXEC} + CFBundleName + ${NAME} + CFBundlePackageType + APPL + CFBundleVersion + 1 + CFBundleShortVersionString + ${VERSION} + CFBundleIconFile + icons.icns + CFBundleSignature + none + + + EOF + + hdiutil create ${DMGNAME}.dmg -srcfolder ${GUI_PATH} -ov -volname ${DMGNAME} + fi -cat << EOF > ${GUI_PATH}/Contents/info.plist - - - - - CFBundleIdentifier - com.hxc2001.${GUI_EXEC} - CFBundleName - ${NAME} - CFBundlePackageType - APPL - CFBundleVersion - 1 - CFBundleShortVersionString - ${VERSION} - CFBundleIconFile - icons.icns - CFBundleSignature - none - - -EOF - -hdiutil create ${DMGNAME}.dmg -srcfolder ${CLI_PATH} -srcfolder ${GUI_PATH} -ov -volname ${DMGNAME}