Revert "Changed the app versioning"

This reverts commit 40ef66651f5d7ec886ae2ae8c4a6ac62715055f5.
This commit is contained in:
Valeri Gokadze
2024-04-29 16:32:21 +04:00
parent c744b06eb9
commit 6f884005e3
3 changed files with 2 additions and 24 deletions

View File

@ -1 +1 @@
const appVersion = '2024.4.5'; const appVersion = '7.6.2';

View File

@ -5,7 +5,7 @@ repository: https://github.com/gokadzev/Musify
issue_tracker: https://github.com/gokadzev/Musify/issues issue_tracker: https://github.com/gokadzev/Musify/issues
publish_to: 'none' publish_to: 'none'
version: 2024.4.5+91 # change only versionCode and run update.sh version: 7.6.2+87 # run update.sh after changing the version
environment: environment:
sdk: '>=3.3.3 <4.0.0' sdk: '>=3.3.3 <4.0.0'

View File

@ -1,22 +0,0 @@
#!/usr/bin/env python3
import datetime
import re
# Get today's date
today = datetime.date.today()
# Format date as YYYY.MM.DD
new_version = today.strftime("%Y.%-m.%-d")
# Open and read the pubspec.yaml file
with open('pubspec.yaml', 'r') as file:
data = file.read()
# Replace the version number with the new version
data = re.sub(r'version: \d+\.\d+\.\d+', 'version: ' + new_version, data)
# Write the updated content back to the file
with open('pubspec.yaml', 'w') as file:
file.write(data)
# Print message indicating the version update
print(f"Project version updated to {new_version}")