构建环境镜像添加

This commit is contained in:
2026-06-04 18:17:10 +08:00
parent e6c60a9d6d
commit db10873aaf
2 changed files with 18 additions and 6 deletions
+11 -3
View File
@@ -160,6 +160,14 @@ Linux: Debian 12
flutter pub get
```
如果当前网络无法解析 `pub.dev`,先设置 Pub/Flutter 镜像:
```powershell
$env:PUB_HOSTED_URL="https://pub.flutter-io.cn"
$env:FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn"
flutter pub get
```
### 运行项目
```bash
@@ -170,11 +178,11 @@ flutter run # pdf 和 音视频会再构建过程中下载github上的依赖,
```bash
# Android
flutter build apk --release
flutter build apk --release --no-pub
# Linux
flutter build -d linux --release
flutter build -d linux --release --no-pub
# windows
flutter build -d windows --release
flutter build -d windows --release --no-pub
```
---