ios_build_pre.sh
749 Bytes
# 编译发布前需要执行的操作
if [ -z "$1" ]; then
echo '需要指定环境变量'
fi
base_root='/Users/ethanlam/works/gitlab/flutter_pros/appframe.git/assets'
cd $base_root
if [ ! -z "$1" ]; then
# 首先下载同步最新的数据包
rm -f assets/dist.zip
cd assets
if [ "$1" == 'dev' ]; then
wget https://bxe-obs.banxiaoer.com/fronts/material/xehybrid/assets/basepkg/base-dev.zip
cp -f base-dev.zip $base_root/assets/dist.zip
echo 'wget dev is done '
fi
if [ "$1" == 'pro' ]; then
wget https://bxe-obs.banxiaoer.com/fronts/material/xehybrid/assets/basepkg/base-pro.zip
cp -f base-pro.zip $base_root/assets/dist.zip
echo 'wget pro is done '
fi
fi
echo 'done '