#!/bin/zsh # Get Sequoia InstallAssistant.pkg links from Apple # Since macOS 11 (Big Sur), 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 # For macOS 15 Sequoia the seed catalogs are: # CustomerSeed # https://swscan.apple.com/content/catalogs/others/index-15customerseed-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog # DeveloperSeed # https://swscan.apple.com/content/catalogs/others/index-15seed-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog # PublicSeed # https://swscan.apple.com/content/catalogs/others/index-15beta-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog # Public release # https://swscan.apple.com/content/catalogs/others/index-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog for file in $(curl -s https://swscan.apple.com/content/catalogs/others/index-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog | grep com_apple_MobileAsset_MacSoftwareUpdate.plist | grep -Evw '(com_apple_MobileAsset_MacSoftwareUpdate.plist.integrityDataV1)' | sed -e s/""//g -e s/"<\/string>"//g -e s/\ //g); do curl -s $file | egrep -A 1 -m 2 '(>Build<|OSVersion)' | sed -e s/""//g -e s/"<\/string>"//g -e s/\ //g | sed -e s/""//g -e s/"<\/key>"//g -e s/\ //g echo $file | sed -e "s/com_apple_MobileAsset_MacSoftwareUpdate.plist/InstallAssistant.pkg/g" done