Open ncodeyx opened 5 years ago
Looks like only identityName needs to be filled out and not the family ID. You should make this more clear in the documentation.
Should be fixed in https://github.com/felixrieseberg/electron-windows-store/pull/131; in the mean time 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!!
// ...
});
I've since come to the conclusion that the right way to use electron-windows-store
is to write your own AppxManifest.xml
, and pass this in, like so
const convertToWindowsStore = require('electron-windows-store');
convertToWindowsStore({
manifest: '.\\AppXManifest.xml', // For many reasons, we write should own
packageName: 'Ghost', // Still needed for filename 'Ghost.appx'
// ...
});
Microsoft provides an identity name and family name starting with numbers. When attempting to build with supplied packageIdentity and packageName, i get the following error:
MakeAppx : error: Error info: error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 26, Column 18, Reason: '238....' violates pattern constraint of '([A-Za-z][A-Za-z0-9])(.[A-Za-z][A-Za-z0-9])*'. The attribute 'Id' with value '238...' failed to parse.
Microsoft doesn't allow me to upload it to their store without this being fulfilled.