magloft / adcdownload Goto Github PK
View Code? Open in Web Editor NEWSmart file downloader from Apple Developer downloads area
Smart file downloader from Apple Developer downloads area
With a recent Sierra:
ERROR: Error installing adcdownload:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
this is the output i get when attempting to download xcode in Yosemite 10.10.5
using ruby 2.0.0p481,
macports to install wget @1.19.1_0+ssl,
$ adcdownload get http://adcdownload.apple.com/Developer_Tools/Xcode_7.2.1/Xcode_7.2.1.dmg --trace
/Library/Ruby/Gems/2.0.0/gems/fastimage-2.1.0/lib/fastimage.rb:67: warning: already initialized constant URI::DEFAULT_PARSER
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:545: warning: previous definition of DEFAULT_PARSER was here
[2017-03-07T18:40:05] INFO creating download cookie
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `connect': Connection reset by peer - SSL_connect (Faraday::ConnectionFailed)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `block in connect'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1367:in `request'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1126:in `get'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/adapter/net_http.rb:78:in `perform_request'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/adapter/net_http.rb:38:in `block in call'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/adapter/net_http.rb:85:in `with_net_http_connection'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/adapter/net_http.rb:33:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday-cookie_jar-0.0.6/lib/faraday/cookie_jar.rb:22:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.11.0.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.11.0.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday_middleware-0.11.0.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/rack_builder.rb:139:in `build_response'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/connection.rb:377:in `run_request'
from /Library/Ruby/Gems/2.0.0/gems/faraday-0.11.0/lib/faraday/connection.rb:140:in `get'
from /Library/Ruby/Gems/2.0.0/gems/adcdownload-0.1.2/lib/adcdownload/client.rb:19:in `api_key'
from /Library/Ruby/Gems/2.0.0/gems/adcdownload-0.1.2/lib/adcdownload/client.rb:34:in `get_cookies'
from /Library/Ruby/Gems/2.0.0/gems/adcdownload-0.1.2/lib/adcdownload/command/get.rb:40:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.3/lib/commander/runner.rb:68:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/adcdownload-0.1.2/lib/adcdownload/application.rb:34:in `run'
from /Library/Ruby/Gems/2.0.0/gems/adcdownload-0.1.2/bin/adcdownload:6:in `<top (required)>'
from /usr/bin/adcdownload:22:in `load'
from /usr/bin/adcdownload:22:in `<main>'
Installed successfully.
Now after I've completed to use it, I'd like to Uninstall it.
What's the right command?
I get the error error: #<Faraday::Response:0x007fa0db267658>. Use --trace to view backtrace
after typing in my user name and password, just as I get pinged to allow access to a new login by Apple's 2F.
Harvants-MBP:~ harvant$ adcdownload get http://download.developer.apple.com/Developer_Tools/Xcode_9.3.1/Xcode_9.3.1.xip
[2018-05-15T11:20:58] FATAL Invalid download URL
Every time. How to fix it ?
Looks like bit-rotten:
$ adcdownload -x get https://download.developer.apple.com/...omitted...
Traceback (most recent call last):
15: from /home/pi/.gem/ruby/2.5.0/bin/adcdownload:23:in `<main>'
14: from /home/pi/.gem/ruby/2.5.0/bin/adcdownload:23:in `load'
13: from /home/pi/.gem/ruby/2.5.0/gems/adcdownload-0.1.2/bin/adcdownload:6:in `<top (required)>'
12: from /home/pi/.gem/ruby/2.5.0/gems/adcdownload-0.1.2/lib/adcdownload/application.rb:34:in `run'
11: from /home/pi/.gem/ruby/2.5.0/gems/commander-4.4.6/lib/commander/delegates.rb:15:in `run!'
10: from /home/pi/.gem/ruby/2.5.0/gems/commander-4.4.6/lib/commander/runner.rb:65:in `run!'
9: from /home/pi/.gem/ruby/2.5.0/gems/commander-4.4.6/lib/commander/runner.rb:381:in `parse_global_options'
8: from /usr/lib/ruby/2.5.0/optparse.rb:1648:in `parse!'
7: from /usr/lib/ruby/2.5.0/optparse.rb:1626:in `permute!'
6: from /usr/lib/ruby/2.5.0/optparse.rb:1532:in `order!'
5: from /usr/lib/ruby/2.5.0/optparse.rb:1538:in `parse_in_order'
4: from /usr/lib/ruby/2.5.0/optparse.rb:1538:in `catch'
3: from /usr/lib/ruby/2.5.0/optparse.rb:1584:in `block in parse_in_order'
2: from /home/pi/.gem/ruby/2.5.0/gems/commander-4.4.6/lib/commander/runner.rb:400:in `block in global_option_proc'
1: from /home/pi/.gem/ruby/2.5.0/gems/adcdownload-0.1.2/lib/adcdownload/application.rb:12:in `block in run'
/home/pi/.gem/ruby/2.5.0/gems/commander-4.4.6/lib/commander/user_interaction.rb:359:in `method_missing': undefined local variable or method `logger' for #<ADCDownload::Application:0x01b7ecd8> (NameError)
pi@raspberrypi:~/sw/adcdownload $ ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [arm-linux-gnueabihf]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.