我试图在windows商店上发布windows应用程序。我构建应用程序时:
cordova build widows --release上传时,我会出错
Package acceptance validation error: The Publisher attribute of the Identity element in the app manifest of file CordovaApp.xxx.appx is CN=$username$, which doesn't match your publisher ID: CN=xxxxxxxxxxxxx.我尝试使用关联应用程序来定义下一行config.xml:
<preference name="windows-publisher-id" value="-appCN-" />但仍有:
<Identity Name="xxx" Publisher="CN=$username$" Version="1.0.0.0" ProcessorArchitecture="neutral" />在构建后的AppxManifest.xml中。如何指定CN值?(我不使用)
发布于 2015-10-27 20:12:59
尝试在/platforms/windows/Package.phe.appx清单中更改Identity标记的Identity属性
编辑:现在有一个更好的解决方案(请参阅cadesalaberry下面的答案)
发布于 2016-06-30 08:11:24
根据https://cordova.apache.org/docs/en/dev/guide/platforms/win8/index.html#signing-an-app
现在,您可以在build.json文件之外使用config.xml文件,如下所示:
{
"windows": {
"release": {
"packageCertificateKeyFile": "c:\\path-to-key\\keycert.pfx"
"publisherId": "CN=xxxxxxxxxxxxxxxxxxxxxx"
}
}
}https://stackoverflow.com/questions/33371406
复制相似问题