Signing the windows universal platform appx

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ictbram

My project is finished and I want to send it to the Microsoft store.
I’m trying to sign an exported Universal Windows Platform app (The project is with Godot 2.1.4)
I’ve created a certficate as described in:

(I had to change the first command with CN=publisherName in it, in stead of publisherName, for the command to run)

In the final stap however, Signing the package, I get an error after the following command:

SignTool sign /fd SHA256 /a /f MyKey.pfx /p paswordXXX exportApp.appx
Done Adding Additional Store
SignTool Error: This file format cannot be signed because it is not recognized.
SignTool Error: An error occurred while attempting to sign: exportApp.appx

Number of errors: 1

Can someone give any advice please? I would like to also publish my app to the microsoft store.

I’m facing the same problem with Godot 3.0.6. Did you find a solution?

Thrawn | 2019-01-16 17:43

No, I did not put any extra effort in this since the windows executable export works fine, but I would be delighted if I could publish to the MS store, I pay the fee for having another project on there that was made with another tool.
I do have got myself more documentation on Godot in the meantime. If I find a solution I’ll post it here.

ictbram | 2019-01-17 18:05

I’ve got my Godot 2.1 app published to the microsoft store with DesktopAppConverter. You can convert windows executables to packages for the windows store with this.
MSIX Packaging Tool Overview - MSIX | Microsoft Learn
It was a bit of work, downloading a base image and windows kit, installing windows features. It had to be done on a windows 10 pro.
When things were set up, it was executing a DesktopAppConverter.exe command where the Desktop App Converter GUI helped me for generating that command, you can use it for free for a limited time.
Desktop App Converter GUI - Official app in the Microsoft Store
After using DesktopAppConverter.exe you can change things in AppxManifest.xml, change icons and use MakeAppx to repackage with the updated settings and images.

Satisfied that I got into the microsoft store, the only downside with this workflow is that the user needs adminstrative privileges to install the app I read somewhere.

Here’s my app on the microsoft store:
musical notes helper - Official app in the Microsoft Store

ictbram | 2019-06-02 07:32