使用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
使用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