Version Bumping

This commit is contained in:
Tihanyi Marcell
2024-04-16 21:20:41 +02:00
parent cdde458fe7
commit 6f6473ceee
3 changed files with 26 additions and 10 deletions

16
refilc/update-version.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# Ask for version
echo "Enter new version (5.0.0):"
read version
# Ask for build number
echo "Enter new build number (250):"
read build
# Update version in pubspec.yaml
sed -i '' "s/version: .*/version: $version+$build/" pubspec.yaml
# Update version in project.pbxproj
sed -i '' "s/CURRENT_PROJECT_VERSION = .*/CURRENT_PROJECT_VERSION = $build;/" ios/Runner.xcodeproj/project.pbxproj
sed -i '' "s/MARKETING_VERSION = .*/MARKETING_VERSION = $version;/" ios/Runner.xcodeproj/project.pbxproj