Skip to content

Instantly share code, notes, and snippets.

@zaidw21
Created January 27, 2020 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaidw21/aa744ce91433fdcf86c1f404b7dc2e62 to your computer and use it in GitHub Desktop.
Save zaidw21/aa744ce91433fdcf86c1f404b7dc2e62 to your computer and use it in GitHub Desktop.
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
@echo off
SET STR=%1
ECHO -------------------------------------------------- Creating folder started ---------------------------------
apktool b %STR%
ECHO -------------------------------------------------- Creating folder completed -------------------------------
ECHO -------------------------------------------------- Copying dist to SignApk ---------------------------------
cd %STR%\dist
move %STR%.apk SignApk
ECHO -------------------------------------------------- Copying Completed ---------------------------------------
ECHO -------------------------------------------------- Creating signed APK -------------------------------------
cd SignApk
java -jar signapk.jar certificate.pem key.pk8 %STR%.apk %STR%_new.apk
ECHO -------------------------------------------------- Process Complete ----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment