Skip to content

Instantly share code, notes, and snippets.

@madeinnordeste
Forked from romuloctba/assinar-apk.md
Created May 4, 2018 13:38
Show Gist options
  • Save madeinnordeste/d73240577e73f7d025e01aa75ae7d59c to your computer and use it in GitHub Desktop.
Save madeinnordeste/d73240577e73f7d025e01aa75ae7d59c to your computer and use it in GitHub Desktop.
Colinha para assinar e publicar .apk

Para assinar apk:

  1. ionic build --release android vai gerar um apk na pastaDoProjeto/platforms/android/build/output/android-unsigned.apk. Renomeie o arquivo para nomeDoApk-unsigned.apk

  2. Na pasta do java/jde-AlgumaVersao/bin: keytool -genkey -v -keystore nomeDaChave.keystore -alias aliasQueVcEscolhe -keyalg RSA -keysize 2048 -validity 1000

  3. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore nomeDaChave.keystore nomeDoApk-unsigned.apk aliasQueVcEscolheu

  4. na pasta do android-adt/sdk/build-tools/algumaVersao: zipalign -v 4 nomeDoApk-unsigned.apk nomeQueVcQuerDarParaOApk.apk

  5. Prontinho. Preencha tudo e tire os prints para o Google Play Developer Console, envie o Apk. `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment