构建环境镜像添加
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user