Added script for auto incrementing build number

This commit is contained in:
2025-06-08 01:29:05 +02:00
parent 0256686efe
commit eddb009d70
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,3 @@
increment_build_number.sh
# Do not remove or rename entries in this file, only add new ones
# See https://github.com/flutter/flutter/issues/128635 for more context.

View File

@@ -0,0 +1,2 @@
build_number=$(awk -F'+' '/version:/ {print $2}' pubspec.yaml); build_number=${build_number:-0};
sed -i '' -E "s/(version: [0-9]+\.[0-9]+\.[0-9]\+)[0-9]*/\1$((build_number + 1))/" pubspec.yaml