用于更新全部的本地插件pub库,以编译连接,防止工程一片飘红
#!/bin/sh
fn="pubspec.yaml"
yamals=$(find . -name$fn)
for line in$yamals;do
dir=${line%$fn}
echo "$dir"
if [[ $dir == *"/example/"*]];then
echo "Example will not pub get!"
continue
fi
cd "$dir" || continue
flutter pub get
cd -|| continue
done
网友评论