#!/bin/bash set -e CONTRIB="$(dirname "$(readlink -e "$0")")" ROOT_FOLDER="$CONTRIB"/.. PACKAGES="$ROOT_FOLDER"/packages/ LOCALE="$ROOT_FOLDER"/electrum/locale/ if [ ! -d "$LOCALE" ]; then echo "Run make_locale first!" exit 1 fi if [ ! -d "$PACKAGES" ]; then echo "Run make_packages first!" exit 1 fi pushd ./electrum/gui/kivy/ make theming if [[ -n "$1" && "$1" == "release" ]] ; then echo -n Keystore Password: read -s password export P4A_RELEASE_KEYSTORE=~/.keystore export P4A_RELEASE_KEYSTORE_PASSWD=$password export P4A_RELEASE_KEYALIAS_PASSWD=$password export P4A_RELEASE_KEYALIAS=electrum make release else make apk fi popd