Last active
May 17, 2024 00:41
-
-
Save b0gdanw/26f528dda5abea7ce6fe633ca2ef1063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
#Get Big Sur, Monterey & Ventura InstallAssistant.pkg links from Apple | |
#For macOS 11 (Big Sur), 12 (Monterey) and 13 (Ventura), Apple provides the Install macOS ___.app packaged as InstallAssistant.pkg | |
#The links for the InstallAssistant packages are listed in the seed catalogs | |
#The seed catalogs are listed in /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/SeedCatalogs.plist | |
#The script gets the CustomerSeed seed catalog link from SeedCatalogs.plist, then gets the macOS versions available from the Info.plist and prints the links for the corresponding InstallAssistant.pkg | |
#Other options | |
#PublicSeed (Public Beta) | |
#link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'PublicSeed' | sed -e s/'"PublicSeed" => "'//g -e s/'.gz"'//g -e s/\ //g ) | |
#DeveloperSeed (Developer Beta) | |
#link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'DeveloperSeed' | sed -e s/'"DeveloperSeed" => "'//g -e s/'.gz"'//g -e s/\ //g ) | |
link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'CustomerSeed' | sed -e s/'"CustomerSeed" => "'//g -e s/'.gz"'//g -e s/\ //g ) | |
for file in $(curl -# $link | grep Info.plist | grep -Evw '(Info.plist.integrityDataV1|InstallInfo.plist)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g); do | |
curl -# $file | egrep -EA 1 '(>Build<|OSVersion)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g | sed -e s/"<key>"//g -e s/"<\/key>"//g -e s/\ //g | |
echo $file | sed -e "s/Info.plist/InstallAssistant.pkg/g" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use the script
https://user-images.githubusercontent.com/26733455/227010810-a4b18caa-e8c9-4720-8a47-02c00be05219.mp4