#!/bin/sh -e DIR="$(realpath "$(dirname "$0")/..")" TMP=/tmp/test-apk-sign-keystore set -x rm -rf "$TMP" mkdir "$TMP" yes | keytool \ -genkey \ -keypass "asdfasdf" \ -storepass "asdfasdf" \ -v \ -keystore "$TMP"/keystore.p12 \ -alias "test" \ -keyalg RSA \ -keysize 2048 \ -validity 1337 ln -sf "$TMP"/keystore.p12 "$DIR"/.apk-sign-keystore.p12