简体   繁体   English

在Visual Studio中开发的用于Cordova App的Apk

[英]Sign Apk for Cordova App developed in Visual Studio

I have created cordova App using Visual Studio 2015. If I build App in Release mode unsigned APK created. 我使用Visual Studio 2015创建了cordova应用程序。如果我在发布模式下构建应用程序未创建的APK。 Now I want to deploy the App. 现在我想部署App。 How can I create keystore? 我该如何创建密钥库? How can I sign my apk created in Released folder? 如何签署在Released文件夹中创建的apk?

Note: I dont have android studio 注意:我没有android studio

I followed MS instructions from here , see section Package and Sign Android app (shown below), and it worked for me. 我从这里按照MS说明进行操作,请参阅Package and Sign Android应用程序(如下所示),它对我有用。

To sign an Android app for distribution 签署Android应用程序以进行分发

1.Generate a keystore and provide the information required to create a certificate (private key). 1.生成密钥库并提供创建证书(私钥)所需的信息。 For more information, see Signing your applications in the Android documentation. 有关更多信息,请参阅在Android文档中签署您的应用程序。

2.When you have created a keystore, open the res\\native\\android folder. 2.创建密钥库后,打开res \\ native \\ android文件夹。

3.Open the ant.properties file, and enter information about the keystore and the alias. 3.打开ant.properties文件,然后输入有关密钥库和别名的信息。 The Key.store property in ant.properties must specify a relative or absolute path to the certificate file. ant.properties中的Key.store属性必须指定证书文件的相对路径或绝对路径。

4.Put the keystore you created either in the same folder as ant.properties, or in some other location. 4.将您创建的密钥库放在与ant.properties相同的文件夹中,或放在其他位置。 (For example, for security reasons, you might not want to check the keystore into source control.) (例如,出于安全原因,您可能不希望将密钥库检查到源代码管理中。)

5.Build the Android app. 5.构建Android应用程序。

When you build the app, Visual Studio will sign the package with the credentials you supplied. 构建应用程序时,Visual Studio将使用您提供的凭据对包进行签名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM