Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save b0gdanw/44fd5bbe391b4e1db102b7c29ecc59e2 to your computer and use it in GitHub Desktop.

Select an option

Save b0gdanw/44fd5bbe391b4e1db102b7c29ecc59e2 to your computer and use it in GitHub Desktop.

Revisions

  1. b0gdanw renamed this gist Sep 24, 2025. 1 changed file with 0 additions and 0 deletions.
  2. b0gdanw renamed this gist Sep 22, 2025. 1 changed file with 0 additions and 0 deletions.
  3. b0gdanw revised this gist Sep 22, 2025. No changes.
  4. b0gdanw created this gist Dec 11, 2024.
    20 changes: 20 additions & 0 deletions Get-Sequoia-InstallAssistant-pkg-links-from-Apple.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/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/"<string>"//g -e s/"<\/string>"//g -e s/\ //g); do
    curl -s $file | egrep -A 1 -m 2 '(>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/com_apple_MobileAsset_MacSoftwareUpdate.plist/InstallAssistant.pkg/g"
    done