mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-04 01:29:39 -06:00
14 lines
468 B
Bash
14 lines
468 B
Bash
#!/bin/bash
|
|
|
|
# Read the current versionCode and versionName from the build.gradle file
|
|
VERSION_NAME=$(grep "versionName" app/build.gradle | awk '{print $2}' | tr -d '\r''"')
|
|
|
|
|
|
NEW_VERSION_NAME="$VERSION_NAME-master"
|
|
|
|
# Update the build.gradle file with the new versionCode and versionName values
|
|
sed -i "s/versionName \"$VERSION_NAME\"/versionName \"$NEW_VERSION_NAME\"/" app/build.gradle
|
|
|
|
# Output the new versionCode and versionName values
|
|
echo "v$NEW_VERSION_NAME"
|