Last active
November 18, 2016 02:03
-
-
Save rraallvv/239dd4f12e3198d4cd08c9c62dbfc65d to your computer and use it in GitHub Desktop.
Xcode download
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
| #download the intaller files | |
| wget http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple71/v4/e0/2e/64/e02e6498-9bd5-bc78-2738-0ca79cb4765c/signed.dcr.6410040734139541671.pfpkg | |
| wget http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple71/v4/66/1c/25/661c254e-acc7-de5a-b30b-13364e348b77/jag2639320146412366344.pkg | |
| #create a tmp folder | |
| mkdir xcodeRoot && cd xcodeRoot | |
| #create a folder structure to match apple server | |
| mkdir -p ./apple-assets-us-std-000001/Purple71/v4/e0/2e/64/e02e6498-9bd5-bc78-2738-0ca79cb4765c/ | |
| mkdir -p ./apple-assets-us-std-000001/Purple71/v4/66/1c/25/661c254e-acc7-de5a-b30b-13364e348b77/ | |
| #move downloaded pkg file to proper path | |
| mv ../signed.dcr.6410040734139541671.pfpkg ./apple-assets-us-std-000001/Purple71/v4/e0/2e/64/e02e6498-9bd5-bc78-2738-0ca79cb4765c/ | |
| mv ../jag2639320146412366344.pkg ./apple-assets-us-std-000001/Purple71/v4/66/1c/25/661c254e-acc7-de5a-b30b-13364e348b77/ | |
| #start a web server when you are in "sierraRoot" folder | |
| sudo python -m SimpleHTTPServer 80 | |
| #edit your mac's /etc/hosts file to add following line | |
| sudo echo "127.0.0.1 osxapps.itunes.apple.com" >> /etc/hosts | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment