如何签署Cordova(Ionic> = 2)UWP应用程序,以便上传到商店? [英] How to sign Cordova (Ionic >=2) UWP application so can upload to the store?

查看:86
本文介绍了如何签署Cordova(Ionic> = 2)UWP应用程序,以便上传到商店?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Ionic(> = 2)框架构建了Cordova应用程序,我一直在努力让它正确签名。我有一个堆栈溢出帖子,一路上有一些问题  这里

I have a Cordova application build via the Ionic (>=2) framework, where I have been absolutely struggling to get it correctly signed. I have a stack overflow post with some problems along the way here.

总之,我想要做的就是知道如何使用我自己的证书签署应用程序,该证书可以上传到商店(并安装在非开发机器上) 。无论我有多少谷歌,我最终都有不完整信息的所有相同的地方。对于
示例,请按照以下说明此处, 链接到此处。 
后者(创建包签名证书)仅向您显示如何制作自签名证书,并声明"自签名证书对测试"非常有用。我需要一个我可以用于存储(不测试!)。我有
跟着那么多次,但它根本不起作用(假设这只是一个不适合商店的自签名)=

In summary, all I want to do is know how to sign the application with my own certificate that can be uploaded to the store (and installed on non dev machines). No matter how much I google, I end up all the same places with the incomplete information. For example, following instructions here, which links to here. The latter (Create a certificate for package signing) only shows you how to make a self signed certificate, and states "A self signed certificate is useful for testing". I need one that I can use for then store (not testing!). I Have followed what is there so many times, but it just does not work at all (assuming as this is just a self signed not suitable for the store)=

所以,我的问题是

1。 商店需要什么证书(我需要购买其中一种吗?)

1. What certificate do i need for the store (do I need to buy one of these???)

2。如何使用此签名(上述链接中的说明不正确)

2. How to use this to sign (the instructions from the above links are not correct)

我正在使用以下Ionic CLI命令构建...

I am building using the following Ionic CLI command...

`ionic cordova build windows --release --prod --buildConfig c:/windows_certificate/build.config  --archy = x86`

`ionic cordova build windows --release --prod --buildConfig c:/windows_certificate/build.config  -- --arch=x86`

build.config包含以下内容

The build.config holds the following

{
    "windows": {
        "debug": {
            "packageCertificateKeyFile": "platforms\\windows\\CordovaApp_TemporaryKey.pfx"
        },
        "release": {
            "packageCertificateKeyFile": "c:\\\\windows_certificate\\myapp_uwp.pfx",
            "packageThumbprint": "4C946F36E163D0784B2AD9508CD8C2xxxxxxxxxxxxx",
            "publisherId": "CN=My COmpany Pty Ltd, C=AU"
        }
    }
}

我运行时找到的  packageThumbprint 

The packageThumbprint I find when I run 

设置 - 位置证书:\ LocalMachine \我的
Get-ChildItem |格式 - 表主题,友好名称,指纹

Set-Location Cert:\LocalMachine\My
Get-ChildItem | Format-Table Subject, FriendlyName, Thumbprint

我已经有一段时间了,我完全没有想法。当然有一个固定的程序如何做到这一点?

I Have been on this for a while now, and am completely out of ideas. Surely there is a fixed procedure on how to do this?

提前感谢任何额外的信息。

Thanks in advance for any extra information.




推荐答案

您好,

→1。我需要什么证书给商店(我需要购买其中一个吗?)

不,你不需要购买证书为您的商店提交。商店将为您的项目提供StoreKey.Pfx。要获得它,您需要将您的应用与开发人员中心中的应用名称相关联,以便所有身份信息(发布者信息和包
身份名称等)都相同。

No, you do not need to purchase a certificate for your Store submission. The Store will provide a StoreKey.Pfx for your project. To get it, you need to associate your app with the app name in Dev Center so that all the identity info (publisher info and package identity name etc.) will be identical.

> 2。如何使用此签名(以上链接中的说明不正确)?

此链接通常用于手动签名包,即用于侧载。在您的情况下,由于您需要将应用程序发布到商店,您可以将项目导入Visual Studio并为商店提交创建包。

The link is usually used for manually signing package, which is for sideloading. In your case, since you need to publish your app to the Store, you could import your project to Visual Studio and create your package for Store submission.

有关详细信息,请参阅
package您的应用的Windows版本

For more details, you could refer to package the Windows version of your app.

谢谢。

祝你好运,

Mattew Wu

Mattew Wu


这篇关于如何签署Cordova(Ionic> = 2)UWP应用程序,以便上传到商店?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆