Skip to content

Commit c47b3ed

Browse files
authored
Merge pull request #182 from th3dstudio/2.0.x
2.0.x
2 parents c951208 + 7f5f2da commit c47b3ed

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

Board_Configs/TH3D_EZBoardLite/Firmware/Marlin/Configuration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#pragma once
66
#define CONFIGURATION_H_VERSION 02010200
77

8-
#define UNIFIED_VERSION "UF 2.83"
9-
#define STRING_DISTRIBUTION_DATE "2023-12-14"
8+
#define UNIFIED_VERSION "TH3D UFW 2.83a"
9+
#define STRING_DISTRIBUTION_DATE "2023-12-27"
1010

1111
//#@CONFIGURATION_START_FLAG
1212

Board_Configs/TH3D_EZBoardLite_DIY/Firmware/Marlin/Configuration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#pragma once
88
#define CONFIGURATION_H_VERSION 02010200
99

10-
#define UNIFIED_VERSION "UF 2.83"
11-
#define STRING_DISTRIBUTION_DATE "2023-12-14"
10+
#define UNIFIED_VERSION "TH3D UFW 2.83a"
11+
#define STRING_DISTRIBUTION_DATE "2023-12-27"
1212

1313
//#@CONFIGURATION_START_FLAG
1414

Board_Configs/TH3D_EZBoardV2/Firmware/Marlin/Configuration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#pragma once
66
#define CONFIGURATION_H_VERSION 02010200
77

8-
#define UNIFIED_VERSION "UF 2.83"
9-
#define STRING_DISTRIBUTION_DATE "2023-12-14"
8+
#define UNIFIED_VERSION "TH3D UFW 2.83a"
9+
#define STRING_DISTRIBUTION_DATE "2023-12-27"
1010

1111
//#@CONFIGURATION_START_FLAG
1212

Board_Configs/TH3D_EZBoardV2_DIY/Firmware/Marlin/Configuration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#pragma once
88
#define CONFIGURATION_H_VERSION 02010200
99

10-
#define UNIFIED_VERSION "UF 2.83"
11-
#define STRING_DISTRIBUTION_DATE "2023-12-14"
10+
#define UNIFIED_VERSION "TH3D UFW 2.83a"
11+
#define STRING_DISTRIBUTION_DATE "2023-12-27"
1212

1313
//#@CONFIGURATION_START_FLAG
1414

Firmware/Marlin/Configuration_backend.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
//======================= DO NOT MODIFY THIS FILE ===========================
77
//===========================================================================
88

9-
// Version and Date information is now in the Configuration.h files at the top.
9+
#ifndef UNIFIED_VERSION
10+
#define UNIFIED_VERSION "TH3D UFW 2.83a"
11+
#endif
1012

1113
/**
1214
* ABL Probe Settings

Firmware/ini/features.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ USES_LIQUIDCRYSTAL_I2C = marcoschwartz/[email protected]
3737
USES_LIQUIDTWI2 = [email protected]
3838
HAS_LCDPRINT = src_filter=+<src/lcd/lcdprint.cpp>
3939
HAS_MARLINUI_HD44780 = src_filter=+<src/lcd/HD44780>
40-
HAS_MARLINUI_U8GLIB = marlinfirmware/U8glib-HAL@~0.5.2
40+
HAS_MARLINUI_U8GLIB = marlinfirmware/[email protected]
4141
src_filter=+<src/lcd/dogm>
4242
HAS_(FSMC|SPI|LTDC)_TFT = src_filter=+<src/HAL/STM32/tft> +<src/HAL/STM32F1/tft> +<src/lcd/tft_io>
4343
HAS_FSMC_TFT = src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp> +<src/HAL/STM32F1/tft/tft_fsmc.cpp>

Internal Tools/STEP1-UpdateVersion.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def update_version_info(file_path, new_version, new_build_date):
77
content = file.read()
88

99
# Update UNIFIED_VERSION
10-
content = re.sub(r'#define UNIFIED_VERSION "(.*?)"', f'#define UNIFIED_VERSION "UF {new_version}"', content)
10+
content = re.sub(r'#define UNIFIED_VERSION "(.*?)"', f'#define UNIFIED_VERSION "TH3D UFW {new_version}"', content)
1111

1212
# Update STRING_DISTRIBUTION_DATE
1313
content = re.sub(r'#define STRING_DISTRIBUTION_DATE "(.*?)"', f'#define STRING_DISTRIBUTION_DATE "{new_build_date}"', content)
@@ -25,6 +25,10 @@ def update_version_in_folders(root_directories, new_version, new_build_date):
2525
update_version_info(file_path, new_version, new_build_date)
2626
print(f"Updated {file_path}")
2727

28+
def update_version_in_file(file_path, new_version, new_build_date):
29+
update_version_info(file_path, new_version, new_build_date)
30+
print(f"Updated {file_path}")
31+
2832
def main():
2933
new_version = input("Enter the new version number: ")
3034
new_build_date = datetime.now().strftime("%Y-%m-%d")
@@ -35,7 +39,11 @@ def main():
3539
r'D:\Work\GitHub\UnifiedPaidConfigs\Board_Configs'
3640
]
3741

42+
# Additional file to update
43+
additional_file_path = r'D:\Work\GitHub\UnifiedFirmware\Firmware\Marlin\Configuration_backend.h'
44+
3845
update_version_in_folders(root_directories, new_version, new_build_date)
46+
update_version_in_file(additional_file_path, new_version, new_build_date)
3947

4048
if __name__ == "__main__":
4149
main()

0 commit comments

Comments
 (0)