summaryrefslogtreecommitdiff
path: root/platform/uwp/export/export.cpp
diff options
context:
space:
mode:
authorpiratesephiroth <piratesephiroth@users.noreply.github.com>2019-11-09 10:37:10 -0300
committerpiratesephiroth <piratesephiroth@users.noreply.github.com>2019-11-09 10:37:10 -0300
commita0fd4504152dcdf991d021254d217f1e96f5accd (patch)
tree5a8304a596114c02aa1aa0974bc261f72e5488bd /platform/uwp/export/export.cpp
parent0ab0d11c17dd58ac35335cabd032409c42a41a94 (diff)
[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.
Diffstat (limited to 'platform/uwp/export/export.cpp')
-rw-r--r--platform/uwp/export/export.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp
index fefad3584b..557699cf37 100644
--- a/platform/uwp/export/export.cpp
+++ b/platform/uwp/export/export.cpp
@@ -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";