macOS: Add symlink to /Applications and use bigger icons
This commit is contained in:
6
src/Tools/dmg_settings.py
Normal file
6
src/Tools/dmg_settings.py
Normal 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"
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user