简体   繁体   English

在Mac上打开APK文件?

[英]Open an APK file on a Mac?

I just built an appp in phone gap build i'm trying to generate the keystore file, 我只是在手机间隙构建中构建了一个appp,我正在尝试生成密钥库文件,

Does anyone know how to open and sign an apk file in eclipse on a mac? 有谁知道如何在Mac上的Eclipse中打开和签名apk文件?

I'm thinking i'll have to run phonegap locally some how? 我在想我必须在本地运行phonegap些什么?

Cheers, 干杯,

If you've built the APK outside of Eclipse, you can sign it on the command line using the Jarsigner tool, as described here in the Android developer documentation. 如果你已经建立了Eclipse的APK外,你可以登录它使用jarsigner工具在命令行上,如所描述这里的Android开发者文档。

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name

Where my-release-key.keystore is the path to your keystore, my_application.apk is the path to your APK, and alias_name is the name of the alias you gave the release signing key in your keystore. 其中my-release-key.keystore是您的密钥库的路径, my_application.apk是您的APK的路径, alias_name是您在密钥库中为发布签名密钥提供的别名的名称。

Depending on whether you set up a password on your keystore and the signing key within it, you may need to add the flags -storepass mystorepass and -keypass mykeypass . 根据是否在密钥库上设置密码以及其中的签名密钥,您可能需要添加标志-storepass mystorepass-keypass mykeypass

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

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