mirror of
https://github.com/gokadzev/Musify.git
synced 2025-05-17 22:46:05 +08:00
Revert "Changed the app versioning"
This reverts commit 40ef66651f5d7ec886ae2ae8c4a6ac62715055f5.
This commit is contained in:
@ -1 +1 @@
|
|||||||
const appVersion = '2024.4.5';
|
const appVersion = '7.6.2';
|
||||||
|
@ -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'
|
||||||
|
@ -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}")
|
|
Reference in New Issue
Block a user