seopolis's Forum Posts

  • 5 posts
  • 1. Open these 2 tutorials for your reference:

    https://shatter-box.com/knowledgebase/a ... pk-signer/

    https://www.scirra.com/tutorials/861/ho ... id-app-apk

    Be sure that you have installed Java jdk 8.0 and Java JRE 8.0 and you have defined your environment variables correctly.

    Note that jarsigner is part of the JDK, and resides inside this folder: C:\Program Files\Java\jdk1.8.0_71\bin

    2. Build your app on Cocoon.io without signing it there and download it on your PC.

    3. Run this command to sign your app:

    jarsigner -verbose -sigalg SHA1withDSA -digestalg SHA1 -keystore PATH/TO/YOUR_RELEASE_KEY.keystore PATH/TO/YOUR_UNSIGNED_PROJECT.apk YOUR_ALIAS_NAME

    It will ask for password, write your keystore password (I use same pass for storepass and keypass).

    If you have different storepass and keypass passwords, then the above command should look like this:

    jarsigner -verbose -sigalg SHA1withDSA -digestalg SHA -keystore PATH/TO/YOUR_RELEASE_KEY.keystore -storepass YOUR_STORE_PASS -keypass YOUR_KEY_PASS PATH/TO/YOUR_UNSIGNED_PROJECT.apk YOUR_ALIAS_NAME

    Ok your app is signed.

    * If you have 2 versions of your app (x86 and armv7) run the above command for both .apks.

    4. Now we align the apps:

    zipalign -v 4 PATH/TO/YOUR_SIGNED_PROJECT.apk PATH/TO/YOUR_SIGNED_AND_ALIGNED_PROJECT.apk

    5. Upload your apk to Play Store. It worked for me fine.

    Good luck!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I had the same error. The keystore file from IntelXDK is fine, but somehow is not compatible with Cocoon.io's build system.

    So I tried to zip and align my app in my PC using Apk-Signer, following the instructions of this guide:

    https://shatter-box.com/knowledgebase/a ... pk-signer/

    unfortuantely, the Apk-Signer also failed, but this time I received a more meaningfull error:

    "jarsigner error: java.security.SignatureException: private key algorithm is not compatible with signature algorithm"

    So, after Googling that, what I finally did was this:

    1. I build my App on Cocoon.io chosing unsigned.

    2. I downloaded the apk on my PC and zipped + aligned it with the keystore from IntelXDK using jarsigner and SHA1withDSA algorithm.

    3. I uploaded the new version of my app on Google play and voila it worked just fine!

    If anyone wants to follow that root I can write here the exact 2 commands I used to zip and align my app. I saved these in case I need them again.

    *Sorry for my poor English...

  • What keeps me away from using Cocoon.io is the lack of a loading screen, immediately after their splash screen. A completely black screen for several seconds gives the user the impression that the game has crashed and in my opinion it looks really bad. Until this get solved I will continue to use the IntelXDK path.

  • Thanks for the hint. I will read more about the function object.

  • Hi folks,

    I think that is a simple question but my brain is stuck, and I need a little help.

    My first game is getting bigger and I now have 4 big chunks of exactly the same code in various points in the Events Sheet.

    Is there a way to keep this code only once, and just put a reference the other 3 times ?

    Thanks for any help.

  • 5 posts