1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

[UWP] [Export] added additional checks for blank values

`Short Name` and `Publisher Display Name` are mandatory.
You can't even sign the app package without them in the manifest.
This commit is contained in:
piratesephiroth
2019-11-09 10:37:10 -03:00
parent 0ab0d11c17
commit a0fd450415

View File

@@ -1144,11 +1144,21 @@ public:
return valid;
}
if (!_valid_resource_name(p_preset->get("package/short_name"))) {
valid = false;
err += TTR("Invalid package short name.") + "\n";
}
if (!_valid_resource_name(p_preset->get("package/unique_name"))) {
valid = false;
err += TTR("Invalid package unique name.") + "\n";
}
if (!_valid_resource_name(p_preset->get("package/publisher_display_name"))) {
valid = false;
err += TTR("Invalid package publisher display name.") + "\n";
}
if (!_valid_guid(p_preset->get("identity/product_guid"))) {
valid = false;
err += TTR("Invalid product GUID.") + "\n";