Open jarek-foksa opened 7 years ago
Same thing happens when the package name contains a space. Seems like it would be worth replacing spaces with dashes automatically to create a valid name for the manifest.
It appears this error does not originate from electron-windows-store
code; it comes from makeappx.exe
which it calls here: https://github.com/felixrieseberg/electron-windows-store/blob/master/lib/makeappx.js#L34
Should be fixed in https://github.com/felixrieseberg/electron-windows-store/pull/131; in the meantime the correct (but confusing) way to use this package is like so:
const convertToWindowsStore = require('electron-windows-store');
convertToWindowsStore({
identityName: '12345MyCompany.Ghost', // This is actually the package name!
packageName: 'Ghost', // This is actually the application id!!
// ...
});
When the package name is
123JohnDoe.App
thenelectron-windows-store
generatesAppXManifest.xml
file that contains the following invalid line:The error thrown:
I managed to work around this issue by adjusting the manifest file in
finalSay()
callback so thatId="123JohnDoe.App"
gets replaced withId="JohnDoe.App"
. However, I'm not sure whether this is going to cause some problems in the submission process later.