bartreardon / swiftDialog-scripts

Scripts that utilise Dialog for various tasks.
MIT License
67 stars 14 forks source link

update.sh with Sonoma icon #11

Closed clreinki closed 11 months ago

clreinki commented 11 months ago

First off, thank you so much for this script. I've modified it for my organization and it works amazing.

This is more of a question than a bug. How are you able to figure out the icon URL for the macOS releases? Looking to add the Sonoma icon to this part of the code:

declare -A macosIcon=(
    [13]="https://is1-ssl.mzstatic.com/image/thumb/Purple126/v4/01/11/29/01112962-0b21-4351-3e51-28dc1d7fe0a7/ProductPageIcon.png/460x0w.webp"
    [12]="https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/fc/5f/46/fc5f4610-1647-e0bb-197d-a5a447ec3965/ProductPageIcon.png/460x0w.webp"
    [11]="https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/48/4b/eb/484beb20-2c97-1f72-cc11-081b82b1f920/ProductPageIcon.png/460x0w.webp"
    )
    iconURL=${macosIcon[$majorversion]}
bartreardon commented 11 months ago

Ha - too easy 🙂

search google for "sonoma site:apps.apple.com" and the top hit should be the mac app store preview page. From there, view source and pull out the URL for the sonoma icon

[14]="https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/53/7b/21/537b2109-d127-ba55-95da-552ec54b1d7e/ProductPageIcon.png/460x0w.webp

bartreardon commented 11 months ago

Fixed with https://github.com/bartreardon/swiftDialog-scripts/commit/d36c5b82048fd7eff6017ed6f34cce6fe51b29f3

Cheers 🙂