diff --git a/src/Tools/dmg_settings.py b/src/Tools/dmg_settings.py new file mode 100644 index 0000000000..5be8ee57b3 --- /dev/null +++ b/src/Tools/dmg_settings.py @@ -0,0 +1,6 @@ +files = [f"{containing_folder}/FreeCAD.app"] +symlinks = {"Applications": "/Applications"} +badge_icon = f"{containing_folder}/FreeCAD.app/Contents/Resources/freecad.icns" +window_rect = ((200, 200), (600, 400)) +icon_locations = {"FreeCAD.app": (180, 150), "Applications": (420, 150)} +size = "3g" diff --git a/src/Tools/macos_sign_and_notarize.sh b/src/Tools/macos_sign_and_notarize.sh index 77ee2d6028..4e3c18bfdc 100644 --- a/src/Tools/macos_sign_and_notarize.sh +++ b/src/Tools/macos_sign_and_notarize.sh @@ -53,7 +53,8 @@ run_codesign "${CONTAINING_FOLDER}/FreeCAD.app" # Create a disk image from the folder DMG_NAME="FreeCAD-${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-mac-${ARCH}.dmg" echo "Creating disk image ${DMG_NAME}" -hdiutil create -srcfolder "${CONTAINING_FOLDER}" "${DMG_NAME}" +pip3 install "dmgbuild[badge_icons]>=1.6.0,<1.7.0" +dmgbuild -s dmg_settings.py -Dcontaining_folder="${CONTAINING_FOLDER}" "FreeCAD" "${DMG_NAME}.dmg" # Submit it for notarization (requires that an App Store API Key has been set up in the notarytool) xcrun notarytool submit --wait --keychain-profile "FreeCAD" ${DMG_NAME}