1 Star 0 Fork 27

莲花/Sanmill

forked from calcitem/直棋 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
flutter-init.sh 814 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
GEN_FILE_PATH=lib/generated
FLUTTER_VERSION_FILE=$GEN_FILE_PATH/flutter_version.dart
GIT_INFO_PATH=src/ui/flutter_app/assets/files
GIT_BRANCH_FILE=$GIT_INFO_PATH/git-branch.txt
GIT_REVISION_FILE=$GIT_INFO_PATH/git-revision.txt
mkdir -p "$GIT_INFO_PATH" || true
git symbolic-ref --short HEAD > "$GIT_BRANCH_FILE"
git rev-parse HEAD > "$GIT_REVISION_FILE"
cd src/ui/flutter_app || exit
flutter config --no-analytics
flutter pub get
flutter gen-l10n
mkdir -p "$GEN_FILE_PATH" || true
echo "const Map<String, String> flutterVersion =" >"$FLUTTER_VERSION_FILE"
flutter --version --machine >>"$FLUTTER_VERSION_FILE"
echo ";" >>"$FLUTTER_VERSION_FILE"
flutter pub global deactivate build_runner
flutter pub global activate build_runner
flutter pub run build_runner build --delete-conflicting-outputs
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/lotus665/Sanmill.git
git@gitee.com:lotus665/Sanmill.git
lotus665
Sanmill
Sanmill
dev

搜索帮助