add flutter-sdk.git

This commit is contained in:
z4yx 2020-04-01 21:23:16 +08:00
parent 8f74b786e1
commit f9881b20d5
3 changed files with 26 additions and 0 deletions

View File

@ -138,6 +138,8 @@ mirror_desc:
desc: 多平台的飞行模拟器
- name: flutter
desc: Flutter 框架 SDK 镜像
- name: flutter-sdk.git
desc: Flutter 框架源码镜像
- name: fzug
desc: Fedora 中文用户组的软件包仓库
- name: gcc.git
@ -437,6 +439,7 @@ force_help_mirrors:
- crates.io-index.git
- binutils-gdb.git
- glibc.git
- flutter-sdk.git
label_map:
unknown: label-default

View File

@ -0,0 +1,15 @@
---
category: help
layout: help
mirrorid: flutter-sdk.git
---
## Flutter SDK 源码镜像使用帮助
Flutter SDK 默认从 Github 获取更新,如您访问 Github 速度慢,可以在 Flutter 目录下运行命令:
```
git remote set-url origin https://{{ site.hostname }}/git/flutter-sdk.git
```
将上游设置为 TUNA 镜像

View File

@ -22,4 +22,12 @@ $ export FLUTTER_STORAGE_BASE_URL="https://{{ site.hostname }}/flutter"
$ echo 'export FLUTTER_STORAGE_BASE_URL="https://{{ site.hostname }}/flutter"' >> ~/.bashrc
```
Flutter SDK 默认从 Github 获取更新,如您访问 Github 速度慢,可以在 Flutter 目录下运行命令:
```
$ git remote set-url origin https://{{ site.hostname }}/git/flutter-sdk.git
```
将上游设置为 TUNA 镜像。
此外 Flutter 开发中还需要用到 Dart 语言的包管理器 Pub其镜像使用方法参见[Pub 镜像安装帮助](../dart-pub/)。