AppxManifest(Cordova)中Identity元素的Publisher属性

时间:2015-10-27 15:01:46

标签: cordova windows-phone

我正在尝试在Windows商店发布Windows phone cordova应用程序。 我用以下代码构建应用程序:

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.

我尝试将app与定义下一行config.xml相关联:

  <preference name="windows-publisher-id" value="-appCN-" />

但有stil:

 <Identity Name="xxx" Publisher="CN=$username$" Version="1.0.0.0" ProcessorArchitecture="neutral" />
构建后在AppxManifest.xml中

。 如何指定CN值? (我没有使用Visual Studio)

2 个答案:

答案 0 :(得分:5)

尝试更改/platforms/windows/package.phone.appxmanifest中Publisher标记的Identity属性

编辑: 现在有一个更好的解决方案(参见下面的cadesalaberry&#39;答案)

答案 1 :(得分:1)

根据https://cordova.apache.org/docs/en/dev/guide/platforms/win8/index.html#signing-an-app

您现在可以在 $defaulData = .... $formBuilder = $this->createFormBuilder($defaultData); $entity_options = array( 'class' => 'MyBundle:Param', 'property' => 'description', 'query_builder' => function(EntityRepository $er) { return $er->getParamsFromCategorieQueryBuilder(MyController::$category_for_list); }, 'label' => 'Donnée à afficher' ); $formBuilder ->add('entity_types', 'entity', $entity_options); 旁边使用build.json文件,如下所示:

config.xml