mac: CI/bundle update (#7166)

* Merge mac package updates fix11 (#36)

* Update macOS CI workflow

Adds ad-hoc codesign directive, fixes launch test on arm64

* mac bundle: staple notary ticket to app

* mac: draw version number on fancy dmg background

* Delete tools/osx/rtdmg-bkgd.png

* mac: hidpi compatible fancy dmg background image

* mac: fix fancy dmg background

* Mac: remove license file from fancy dmg root

License displays properly in dmg EULA pop-up window.

* mac CI: show build info in GITHUB_STEP_SUMMARY (#37)

* mac CI: output step summaries

* mac CI: add summary for test launch

* test -cli on both builds

* mac: remove an errant fullstop

* mac CI: reorder test launches

* mac CI: specify full path of app to test launch

* mac CI: add missing file extension

* mac CI: test running app in osascript (#38)

* Simplifies launch test

* macCI: use fancy dmg message

to warn users that CI build not intended for user testing.

* mac: draw optional user message on fancy dmg

used by CI to display a user warning
This commit is contained in:
Richard E Barber
2024-08-11 17:49:56 -07:00
committed by GitHub
parent dc40deeae8
commit 1096cc0898
3 changed files with 73 additions and 35 deletions

View File

@@ -394,6 +394,7 @@ if [[ -n $NOTARY ]]; then
ditto -c -k --sequesterRsrc --keepParent "${APP}" "${APP}.zip"
echo "Uploading..."
sudo xcrun notarytool submit "${APP}.zip" ${NOTARY} --wait
sudo xcrun stapler staple "${APP}"
fi
function CreateDmg {
@@ -401,7 +402,6 @@ function CreateDmg {
msg "Preparing disk image sources at ${srcDir}:"
cp -R "${APP}" "${srcDir}"
cp "${RESOURCES}"/LICENSE "${srcDir}"
ln -s /Applications "${srcDir}"
# Web bookmarks
@@ -427,21 +427,23 @@ function CreateDmg {
msg "Creating disk image:"
if [[ $FANCY_DMG == "ON" ]]; then
echo "Building Fancy .dmg"
MESSAGE="$(cat message)"
magick ${PROJECT_SOURCE_DATA_DIR}/rtdmg-bkgd.png -pointsize 80 -fill Black -draw "text 14,1307 '${PROJECT_FULL_VERSION}'" -fill Salmon -draw "text 10,1300 '${PROJECT_FULL_VERSION}'" ./rtdmg-bkgd.png
magick ./rtdmg-bkgd.png -pointsize 90 -fill Black -gravity center -font Menlo-Bold -draw "text 5,120 \"$MESSAGE\"" -fill Red -gravity center -font Menlo-Bold -draw "text 1,124 \"$MESSAGE\"" ./rtdmg-bkgd.png
create-dmg \
--background ${PROJECT_SOURCE_DATA_DIR}/rtdmg-bkgd.png \
--background ./rtdmg-bkgd.png \
--volname ${PROJECT_NAME}_${PROJECT_FULL_VERSION} \
--volicon ${PROJECT_SOURCE_DATA_DIR}/rtdmg.icns \
--window-pos 72 72 \
--window-size 1000 689 \
--window-size 1000 692 \
--text-size 16 \
--icon-size 80 \
--icon LICENSE 810 0 \
--icon RawTherapee.app 250 178 \
--icon Applications 700 178 \
--icon Website.webloc 300 423 \
--icon Forum.webloc 420 423 \
--icon Report\ Bug.webloc 540 423 \
--icon Documentation.webloc 680 423 \
--icon RawTherapee.app 250 238 \
--icon Applications 700 238 \
--icon Website.webloc 300 487 \
--icon Forum.webloc 420 487 \
--icon Report\ Bug.webloc 540 487 \
--icon Documentation.webloc 680 487 \
--no-internet-enable \
--eula ${PROJECT_SOURCE_DATA_DIR}/../../LICENSE \
--hdiutil-verbose \