For uwp the ARM architecture needs to be in lower case

(cherry picked from commit 07f590046a)
This commit is contained in:
Hein-Pieter van Braam 2018-05-09 01:16:05 +02:00
parent 0c030d6e08
commit 41bb321962
1 changed files with 2 additions and 2 deletions

View File

@ -769,7 +769,7 @@ class EditorExportUWP : public EditorExportPlatform {
result = result.replace("$version_string$", version); result = result.replace("$version_string$", version);
Platform arch = (Platform)(int)p_preset->get("architecture/target"); Platform arch = (Platform)(int)p_preset->get("architecture/target");
String architecture = arch == ARM ? "ARM" : arch == X86 ? "x86" : "x64"; String architecture = arch == ARM ? "arm" : arch == X86 ? "x86" : "x64";
result = result.replace("$architecture$", architecture); result = result.replace("$architecture$", architecture);
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).empty() ? (String)ProjectSettings::get_singleton()->get("application/config/name") : String(p_preset->get("package/display_name"))); result = result.replace("$display_name$", String(p_preset->get("package/display_name")).empty() ? (String)ProjectSettings::get_singleton()->get("application/config/name") : String(p_preset->get("package/display_name")));
@ -1038,7 +1038,7 @@ public:
} }
virtual void get_export_options(List<ExportOption> *r_options) { virtual void get_export_options(List<ExportOption> *r_options) {
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "architecture/target", PROPERTY_HINT_ENUM, "ARM,x86,x64"), 1)); r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "architecture/target", PROPERTY_HINT_ENUM, "arm,x86,x64"), 1));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "command_line/extra_args"), "")); r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "command_line/extra_args"), ""));