Browse Source

Update macOS DMG background image

Signed-off-by: Sol Fisher Romanoff <sol@solfisher.com>
pull/537/head
Sol Fisher Romanoff 3 months ago
parent
commit
9463eba2ea
No known key found for this signature in database GPG Key ID: E0ACA5D1C244E1F
  1. 2
      cmake-proxies/cmake-modules/Package.cmake
  2. BIN
      mac/Resources/Audacity-DMG-background.png
  3. BIN
      mac/Resources/Tenacity-DMG-background.tiff
  4. 10
      mac/scripts/build_dist.sh
  5. 4
      scripts/build/macOS/DMGSetup.scpt

2
cmake-proxies/cmake-modules/Package.cmake

@ -41,7 +41,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
elseif( CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
set( CPACK_GENERATOR DragNDrop )
set( CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/mac/Resources/Audacity-DMG-background.png")
set( CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/mac/Resources/Tenacity-DMG-background.tiff")
set( CPACK_DMG_DS_STORE_SETUP_SCRIPT "${CMAKE_SOURCE_DIR}/scripts/build/macOS/DMGSetup.scpt")
if( ${_OPT}perform_codesign )

BIN
mac/Resources/Audacity-DMG-background.png

Before

Width: 600  |  Height: 450  |  Size: 35 KiB

BIN
mac/Resources/Tenacity-DMG-background.tiff

10
mac/scripts/build_dist.sh

@ -178,7 +178,7 @@ then
${DSTROOT}/Tenacity.app
# Create the ZIP archive for notarization
xcrun ditto -c -k --keepParent "${DSTROOT}/Tenacity.app" "${DSTROOT}.zip"
xcrun ditto -c -k --keepParent "${DSTROOT}/Tenacity.app" "${DSTROOT}.zip"
# Send it off for notarization
notarize "${DSTROOT}.zip"
@ -196,7 +196,7 @@ cp -pR "${DSTROOT}/" "${DMG}"
# Copy over the background image
mkdir "${DMG}/.background"
cp "${SRCROOT}/Resources/Audacity-DMG-background.png" "${DMG}/.background"
cp "${SRCROOT}/Resources/Tenacity-DMG-background.tiff" "${DMG}/.background"
#Add a custom icon for the DMG
#cp -p mac/Resources/Audacity.icns "${DMG}"/.VolumeIcon.icns
@ -243,13 +243,13 @@ echo '
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {400, 100, 1000, 550}
set the bounds of container window to {400, 100, 1000, 558}
set theViewOptions to the icon view options of container window
set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 72
set background picture of theViewOptions to file ".background:Audacity-DMG-background.png"
set background picture of theViewOptions to file ".background:Tenacity-DMG-background.tiff"
make new alias file at container window to POSIX file "/Applications" with properties {name:"Applications"}
set position of item "Audacity" of container window to {170, 350}
set position of item "Tenacity" of container window to {170, 350}
set position of item "Applications" of container window to {430, 350}
close
open

4
scripts/build/macOS/DMGSetup.scpt

@ -7,11 +7,11 @@ on run argv
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {400, 100, 1000, 550}
set the bounds of container window to {400, 100, 1000, 558}
set theViewOptions to the icon view options of container window
set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 72
set background picture of theViewOptions to file ".background:background.png"
set background picture of theViewOptions to file ".background:background.tiff"
set position of item "Tenacity" of container window to {170, 350}
set position of item "Applications" of container window to {430, 350}
close

Loading…
Cancel
Save