electron-windows-store icon indicating copy to clipboard operation
electron-windows-store copied to clipboard

Microsoft provides an identity name and family name that the program won't accept

Open ncodeyx opened this issue 6 years ago • 4 comments

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.

ncodeyx avatar Aug 03 '19 17:08 ncodeyx

Looks like only identityName needs to be filled out and not the family ID. You should make this more clear in the documentation.

ncodeyx avatar Aug 03 '19 19:08 ncodeyx

Duplicate of https://github.com/felixrieseberg/electron-windows-store/issues/82

jameshfisher avatar May 04 '20 17:05 jameshfisher

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!!
    // ...
});

jameshfisher avatar May 05 '20 09:05 jameshfisher

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'
    // ...
});

jameshfisher avatar May 05 '20 15:05 jameshfisher