使用Android Studio,在Before launch中执行shell脚本
![](https://img.haomeiwen.com/i2108147/15f8b06e0f12509e.png)
![](https://img.haomeiwen.com/i2108147/c8b862d4d1dcd016.png)
buildNum内容如下
#!/bin/zsh
perl -i -pe 's/^(version:\s+\d+\.\d+\.)(\d+)(\+)(\d+)$/$1.$2.$3.($4+1)/e' pubspec.yaml
使用Android Studio,在Before launch中执行shell脚本
buildNum内容如下
#!/bin/zsh
perl -i -pe 's/^(version:\s+\d+\.\d+\.)(\d+)(\+)(\d+)$/$1.$2.$3.($4+1)/e' pubspec.yaml
本文标题:flutter编译前版本自增
本文链接:https://www.haomeiwen.com/subject/yaeeudtx.html
网友评论