Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed Jul 9, 2024
1 parent de49b6f commit 28ffd14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/update_build_number.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
for /f %%i in ('git rev-list --count HEAD') do set commit_count=%%i

:: Update the pubspec.yaml file with the new build number
powershell -Command "(gc ../pubspec.yaml) -replace 'version: (.*)\+.*', 'version: $1+%commit_count%' | Out-File -encoding ASCII ../pubspec.yaml"
powershell -Command "(gc ../pubspec.yaml) -replace 'version: (.*)\+.*', 'version: $1+%commit_count%' | Out-File -encoding ASCII ./pubspec.yaml"
2 changes: 1 addition & 1 deletion scripts/update_build_number.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
commit_count=$(git rev-list --count HEAD)

# Update the pubspec.yaml file with the new build number
sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" ../pubspec.yaml
sed -i '' "s/version: \(.*\)+.*/version: \1+$commit_count/" ./pubspec.yaml

0 comments on commit 28ffd14

Please sign in to comment.