Skip to content
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

Multiword UWP Export Capabilities not added to AppxManifest.xml #47900

Closed
Gromph opened this issue Apr 15, 2021 · 0 comments · Fixed by #49680
Closed

Multiword UWP Export Capabilities not added to AppxManifest.xml #47900

Gromph opened this issue Apr 15, 2021 · 0 comments · Fixed by #49680

Comments

@Gromph
Copy link
Contributor

Gromph commented Apr 15, 2021

Godot version:
3.3.rc9

OS/device including version:
Windows 10 build 19042.867

Issue description:
UWP Capabilities that are 2 or more words are not added to the generated AppxManifest.xml when exporting

Steps to reproduce:
Click on Projects -> Export -> UWP
Scroll down to Capabilities
check them all on
Export Project
Extract appx that was built as a zip file
Open AppxManifest.xml with a text editor
Look under
Note that all Capabilities that are only 1 word are there such as appointments, chat, contacts
But there are none that are 2 more words, such as All Joyn, Code Generation, Internet Client

Minimal reproduction project:
ExportPluginTest.zip

The problem is Windows format of the capabilities is camel case, ie internetClient.
platforms\uwp\export\export.cpp list these at the top of the file correctly, but then uses camelcase_to_underscore when adding to ExportOption list.

Then when it is generating AppxManifest.xml in _fix_manifest it looks for the original names, not the underscore name.

I am working on a pull request to fix this.

@akien-mga akien-mga added this to the 4.0 milestone Jun 17, 2021
akien-mga added a commit to akien-mga/godot that referenced this issue Jun 17, 2021
…smatch

The previous code used `camelcase_to_underscore` to prettify the names for
display in the export preset, but it leads to inconsistencies if we don't make
sure to do the reverse operation when writing to the `AppxManifest.xml`.

It's simpler to keep the same names as in the manifest, which is also what
users will see referenced in MS documentation.

Fixes godotengine#47900.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
akien-mga pushed a commit to akien-mga/godot that referenced this issue Jun 29, 2021
…smatch

The previous code used `camelcase_to_underscore` to prettify the names for
display in the export preset, but it leads to inconsistencies if we don't make
sure to do the reverse operation when writing to the `AppxManifest.xml`.

It's simpler to keep the same names as in the manifest, which is also what
users will see referenced in MS documentation.

Fixes godotengine#47900.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit c87e49d)
akien-mga pushed a commit to akien-mga/godot that referenced this issue Jun 29, 2021
…smatch

The previous code used `camelcase_to_underscore` to prettify the names for
display in the export preset, but it leads to inconsistencies if we don't make
sure to do the reverse operation when writing to the `AppxManifest.xml`.

It's simpler to keep the same names as in the manifest, which is also what
users will see referenced in MS documentation.

Fixes godotengine#47900.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit c87e49d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment