#!/bin/bash CURR_DIR=$(cd `dirname $0`; pwd) APK_DIR=$CURR_DIR/../app/build/outputs/apk UNSIGNED_APK=$APK_DIR/app-release-unsigned.apk SIGNED_APK=$APK_DIR/tvmdemo-release.apk jarsigner -verbose -keystore $CURR_DIR/tvmdemo.keystore -signedjar $SIGNED_APK $UNSIGNED_APK 'tvmdemo' echo $SIGNED_APK