Commit f88ffc93 by Administrator

编译脚本优化

1 parent 6ef6cce1
......@@ -5,9 +5,13 @@ if [ -z "$1" ]; then
fi
env=$1
_rebuild_=$2
_main_ver='1.0.'
_ver=`date +%y%m%d%H%M`
base_root='/Users/ethanlam/works/gitlab/flutter_pros/appframe.git'
cd $base_root
git pull
if [ ! -z "$env" ]; then
# 首先下载同步最新的数据包
......@@ -27,5 +31,22 @@ if [ ! -z "$env" ]; then
fi
fi
cd $base_root
if [ ! -z "$_rebuild_" ]; then
flutter clean
flutter pub get
cd ios
rm -rf Pods
rm -rf Podfile.lock
rm -rf .symlinks
rm -rf Flutter/Flutter.framework
rm -rf Flutter/App.framework
pod repo update
pod install
fi
flutter run --dart-define=env=$env --dart-define=version=$_main_ver$_ver -d 00008140-001068C93AB8801C
echo 'done '
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!