Last active
November 14, 2019 11:04
-
-
Save pavelgolovan/94e5c107dc7788764e63b9318c413d80 to your computer and use it in GitHub Desktop.
Xcode downloader. Restarts dl on failure.
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Open https://developer.apple.com/download/more/ | |
| # Login with your app store credentials | |
| # Open chrome dev tools -> Network | |
| # Tap download xcode link | |
| # On network pane right click on dl request -> Copy as cURL | |
| # Run this script as $: dlcmd="Paste curl cmd from clipboard" output="xcode.xip" ./xcodedl.sh | |
| ec=18 | |
| dlcmd="$dlcmd --compressed -o $output -L -C -" | |
| while [ $ec -ne 0 ]; | |
| do eval "${dlcmd}"; | |
| ec=$?; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment