mac 使用命令下载软件

快速下载Xcode

以下载xcode为例:

curl -H "Referrer Policy:no-referrer-when-downgrade" \
-H "Accept-Encoding:gzip, deflate, br" \
-H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" \
-H "Connection:keep-alive" \
-H "Host:download.developer.apple.com" \
-H "Referer:https://developer.apple.com/download/more/" \
-H "Upgrade-Insecure-Requests:1" \
-H "User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" \
--cookie "{cookie_content}" \
-o ./{file_name} \
{xcode_download_url}

替换cookie_content、file_name、xcode_download_url三个变量即可。cookie_content 和 xcode_download_url 都可以在用浏览器下载Xcode的时候看到,file_name就是保存的名字。

ps:速度贼快~下载5个多g的xcode10.2只用了半个多小时耶~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值