-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
const appVersion = '7.6.2'; | ||
const appVersion = '2024.3.21'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/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"Flutter version updated to {new_version}") |