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

Pre-appx AppXManifest.xml has validation error

Open gilvandev opened this issue 6 years ago • 3 comments

Build command: convertToWindowsStore({ containerVirtualization: false, inputDirectory: 'D:\\Apps\\OS\\front\\OSFacil-win32-ia32', outputDirectory: 'D:\\Apps\\OS\\Instaladores\\store\\win32', packageVersion: '1.0.0.0', packageName: '56768GilvanDev.OSFcil', packageExecutable: 'OSFacil.exe', packageDisplayName: 'OSFácil', packageDescription: 'Sistema de Gerenciamento de Ordens de Serviço', packageBackgroundColor: '#333333', publisher: "GilvanDev", assets: 'D:\\Apps\\OS\\StoreAssets', deploy: false, publisher: 'CN=A0EC1861-3E0D-4813-B923-16BF4376828F', windowsKit: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.17763.0\\x86', finalSay: function () { return new Promise((resolve, reject) => resolve()) } })

The Error: Error info: error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 26, Column 18, Reason: '56768GilvanDev.OSFcil' viola a restrição pattern de '([A-Za-z][A-Za-z0-9])(.[A-Za-z][A-Za-z0-9])*'. Falha da análise do atributo 'Id' com valor '56768GilvanDev.OSFcil'.

MakeAppx : error: Package creation failed. MakeAppx : error: 0x80080204 - The specified package format is not valid: The package manifest is not valid.

I think there is a problem with applicationId on the xml file. But, if I change the packageName to something more simple, like "OSFacil" and submit to Store, the Store don't accept the package because the wrong package Identity. In my opinion, electron-windows-store have a bug with the Application ID generation.

Right now, I have to specify te AppXManifest.xml to every Processor Architecture changing the version (after new builds) and the Application ID parameter to something mor simple...MANUALLY.

gilvandev avatar Feb 10 '19 02:02 gilvandev

Same issue.

jameshfisher avatar May 04 '20 16:05 jameshfisher

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