From 00f58a9e3cfaf78a74553246f95f02b66277f7a1 Mon Sep 17 00:00:00 2001 From: Frederic Devernay Date: Wed, 15 Sep 2021 18:51:15 -0700 Subject: [PATCH] build-OSX-installer.sh: fix window size --- tools/jenkins/build-OSX-installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/jenkins/build-OSX-installer.sh b/tools/jenkins/build-OSX-installer.sh index 75fc7510c3..46de9ee8cc 100755 --- a/tools/jenkins/build-OSX-installer.sh +++ b/tools/jenkins/build-OSX-installer.sh @@ -990,8 +990,8 @@ oiiotool -i "${DMG_BACK}" --powc 0.3 -o "/Volumes/${DISK}/.background/${DMG_BACK ln -sf /Applications "/Volumes/${DISK}/Applications" # dmg window dimensions -dmg_width=$(oiiotool --info -v "${DMG_BACK}" | grep Exif:PixelXDimension | awk '{print $2}') -dmg_height=$(oiiotool --info -v "${DMG_BACK}" | grep Exif:PixelYDimension | awk '{print $2}') +dmg_width=$(identify -format '%w' "${DMG_BACK}") +dmg_height=$(identify -format '%h' "${DMG_BACK}") dmg_topleft_x=200 dmg_topleft_y=200 dmg_bottomright_x=$((dmg_topleft_x + dmg_width))