Closed wangzhankun closed 3 years ago
xrepo add-repo myrepo https://gitee.com/tboox/xrepo
仅仅只是对 xmake-repo 包仓库自身拉取切到 gitee
但是里面的包还是内部 add_urls 定义的官方源 url,这是没法切gitee的
而且还支持不了,因为里面大部分都是 tar /archive 包源,但是 gitee 有限制,所有附件以及archive包下载,必须得账号登录,然后输入验证码,才能下载。。而且附件下载还有1m大小的限制
所以根本没法用来做镜像,除非你有办法让gitee官方解除限制,反正我是没办法
另外,可以根据失败提示,走 pkg_searchdirs 设置本地搜索路径,自己手动下载好包放到对应目录下,就能直接使用
或者走 xmake --proxy 配置代理,具体看文档
尽管 gitee 支持不了,但是可以切到 fastgit 上去加速下载,具体见:https://github.com/xmake-io/xmake/issues/1358
需要更新到 dev 版本才支持。
这玩意真难用,一安装就404
这玩意真难用,一安装就404
现在很好啊,执行命令bash <(curl -fsSL https://xmake.io/shget.text)
即可呀。脚本里面会自动根据网络进行选择下载,速度很快啊。升级的时候执行xmake update
就可以速度都很快。
国内访问GitHub网站速度太差,希望能够增加对gitee的支持。我这边执行了
xrepo add-repo myrepo https://gitee.com/tboox/xrepo
但是发现仍然使用的是GitHub的源。`xrepo install "opencv 3.4"输出如下: