fix: Update script making variable constant

This commit is contained in:
LooKeR 2025-01-23 00:24:38 +05:30
parent 1e964a5556
commit e043a7e7e2
No known key found for this signature in database
GPG Key ID: 6B59369FDB608FB9

View File

@ -56,7 +56,7 @@ else
fi fi
# Update the Kotlin file with new version code and name # Update the Kotlin file with new version code and name
sed -i "s/val latestVersionName = \"[^\"]*\"/const val latestVersionName = \"$version_name\"/" "$kotlin_file" sed -i "s/val latestVersionName = \"[^\"]*\"/val latestVersionName = \"$version_name\"/" "$kotlin_file"
sed -i "s/versionCode = [0-9]*/versionCode = $version_code/" "$kotlin_file" sed -i "s/versionCode = [0-9]*/versionCode = $version_code/" "$kotlin_file"
# Create a changelog file # Create a changelog file