cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Husting (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-7665) Release process for Google Play has no documentation, requires guesswork!
Date Fri, 03 Oct 2014 16:36:34 GMT

    [ https://issues.apache.org/jira/browse/CB-7665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158163#comment-14158163
] 

Steve Husting edited comment on CB-7665 at 10/3/14 4:36 PM:
------------------------------------------------------------

1. I created a text file called ant.properties and saved it in the root myApp/ folder. I copied
my .keystore to the same folder. The contents of the file:

# key.store = path/to/.keystore file
# key.alias = alias

key.store=myApp.keystore
key.alias=myApp

2. I ran in the terminal:

$ cd myApp/platforms/android
$ ant release

... and got the message:

BUILD FAILED
/Users/Steve/Documents/AndroidApps/myApp/platforms/android/build.xml:55: sdk.dir is missing.
Make sure to generate local.properties using 'android update project' or to inject it through
the ANDROID_HOME environment variable.

3. Running ...

android update project

... gets ...

Error: The parameter --path must be defined for action 'update project'

4. I don't understand how to formulate the recommended command: 

android update project --path 

What folder should the path point to? 


was (Author: websteve):
1. I created a text file called ant.properties and saved it in the root myApp/ folder. I copied
my .keystore to the same folder. The contents of the file:

# key.store = path/to/.keystore file
# key.alias = alias

key.store=myApp.keystore
key.alias=myApp

2. I ran in the terminal:

$ cd myApp/platforms/android
$ ant release

... and got the message:

BUILD FAILED
/Users/Steve/Documents/AndroidApps/myApp/platforms/android/build.xml:55: sdk.dir is missing.
Make sure to generate local.properties using 'android update project' or to inject it through
the ANDROID_HOME environment variable.

3. I don't understand how to formulate the recommended command: 

android update project --path 

> Release process for Google Play has no documentation, requires guesswork! 
> --------------------------------------------------------------------------
>
>                 Key: CB-7665
>                 URL: https://issues.apache.org/jira/browse/CB-7665
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, CLI, Docs
>    Affects Versions: 3.5.0
>         Environment: Mac OS X Lion
>            Reporter: Steve Husting
>              Labels: patch
>             Fix For: 3.5.0
>
>
> I output my myApp version 12 project with: cordova build android --release
> It was output as myApp/platforms/android/ant-build/myApp-release-unsigned.apk
> I changed the name to the final apk name: myApp-release-unsigned.apk = myApp.apk
> I copied the myApp.keystore file used on earlier myApps to the same folder. 
> Starting with that folder, I ran: jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore myApp.keystore myApp.apk myApp
> I successfully verified it with: jarsigner -verify -verbose -certs myApp.apk
> When I uploaded the myApp.apk to Google Play, it said that the file needed to be zipaligned.
> The verbose output shows zipalign being done. So is there a bug when the apk is made
via cordova build android --release? 
> Is there a step missing that I should be taking? Unfortunately, all the instructions
for this on the Internet assume I'm not using Cordova. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message