-
-
Save rahul286/2fc41942c7ed4039893f to your computer and use it in GitHub Desktop.
## based on https://github.com/lioonline/OS-X-El-Capitan | |
## pkg file link - http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ftk3252456602304584541.pkg | |
# Run this from folder where you have downloaded or copied ftk3252456602304584541.pkg file | |
#create a tmp folder | |
mkdir elCapitanRoot && cd elCapitanRoot | |
#create a folder structure to match apple server | |
sudo mkdir -p ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ | |
#move downloaded pkg file to proper path | |
sudo mv ../ftk3252456602304584541.pkg ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ | |
#start a web server when you are in "elCapitanRoot" 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 | |
#if you are in rtCamp's office, you can try following LAN server | |
#sudo echo "192.168.0.2 osxapps.itunes.apple.com" >> /etc/hosts | |
# open "App Store" app on Mac. And run update. | |
# It should download pkg file from local/LAN server | |
#Important - remove /etc/hosts entry when done, for "App Store" to work |
I have one problem, the server is serving files like http://localhost/apple-assets-us-std-000001%3APurple62%3Av4%3Aa3%3Aa3%3A14%3Aa3a31405-6063-cb0e-5af4-fdeb8fc39491/jze1425880974225146329.pkg
And the app store app requests
/apple-assets-us-std-000001/Purple62/v4/a3/a3/14/a3a31405-6063-cb0e-5af4-fdeb8fc39491/signed.dcr.6908747036561828369.pfpkg
There is something that i'm missing?
ok i git it working but i get this exception
Exception happened during processing of request from ('127.0.0.1', 61137)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 657, in init
self.finish()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 716, in finish
self.wfile.close()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 283, in close
self.flush()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
Guys, what would that be? You can list all the OS X Apple IPSW using the command?
http://www.iapps.im/public/uploadfiles/comment/file/eef1d9d5ec685b89ecd56853535f2529.txt
List Direct IPSW server
http://osxdaily.com/2013/11/15/get-list-all-ipsw-files-from-apple/