Dart Pub 软件仓库

项目简介

Pub 是 Dart 官方的包管理器。跨平台的前端应开发框架 Flutter 也基于 Dart 并且可以使用大部分 Pub 中的库。

由于目录结构产生较大变化,此镜像仅支持 Dart 2.8 及以上版本。

使用方法

如果希望通过 pub 镜像安装软件,只需要设置 PUB_HOSTED_URL

以 bash 为例,临时使用镜像来安装依赖:

export PUB_HOSTED_URL="https://mirrors.sau.edu.cn/dart-pub"
# pub: pub get
# flutter: flutter packages get

若希望长期使用镜像:

echo 'export PUB_HOSTED_URL="https://mirrors.sau.edu.cn/dart-pub"' >> ~/.bashrc

Flutter 镜像使用方法参见 Flutter 镜像安装帮助。

本站由沈阳航空航天大学信息网络中心运行维护。

本站前端基于开源项目 tuna/mirror-web(GPL-2.0)构建,同步后端基于 tuna/tunasync,数据规范采用 MirrorZ 格式。相关修改后的源码同样以 GPL-2.0 协议开放。

clipboard clipboard-check bars globe envelope