-
-
Notifications
You must be signed in to change notification settings - Fork 22.4k
Clarify Windows export warnings for File and Product Version #106007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
A proposed fix for godotengine#104814 - See the comment there Does the following - Fixes the File Version warning to be more specific - Fixes the Product Version warning to be more specific - Edits the file warning logic to match the new "any string starting with a number" req
!version_array[1].is_valid_int() || !version_array[2].is_valid_int() || | ||
!version_array[3].is_valid_int() || product_version.contains_char('-')) { | ||
return TTR("Invalid product version."); | ||
if (product_version[0].is_valid_int()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't compile:
no member named 'is_valid_int' in 'CharProxy<char32_t>'
I'm not sure how CharProxy<char32_t>
works, but is_digit(production_version[0])
(from core/string/char_utils.h
) may work.
@@ -388,17 +388,14 @@ String EditorExportPlatformWindows::get_export_option_warning(const EditorExport | |||
if (version_array.size() != 4 || !version_array[0].is_valid_int() || | |||
!version_array[1].is_valid_int() || !version_array[2].is_valid_int() || | |||
!version_array[3].is_valid_int() || file_version.contains_char('-')) { | |||
return TTR("Invalid file version."); | |||
return TTR("Invalid file version. Proper format is x.x.x.x where x is any int."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return TTR("Invalid file version. Proper format is x.x.x.x where x is any int."); | |
return TTR("Invalid file version. The expected format is `n.n.n.n` where `n` is any integer."); |
!version_array[3].is_valid_int() || product_version.contains_char('-')) { | ||
return TTR("Invalid product version."); | ||
if (product_version[0].is_valid_int()) { | ||
return TTR("Invalid product version. Allowable format is any string beginning with a number"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return TTR("Invalid product version. Allowable format is any string beginning with a number"); | |
return TTR("Invalid product version. The expected format is any string starting with a number."); |
A proposed fix for #104814 - See the comment there
Does the following
Bugsquad edit: