macOS: Add symlink to /Applications and use bigger icons

This commit is contained in:
Ben Hagen
2024-06-14 10:51:07 +02:00
committed by Chris Hennes
parent 2d9e9efdd3
commit bf2355fecc
2 changed files with 8 additions and 1 deletions

View File

@@ -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"

View File

@@ -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}