diff --git a/android/app/build.gradle b/android/app/build.gradle index 1ae11b290b..6ff5849c09 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -122,7 +122,7 @@ android { } signingConfigs { release { - storeFile file(STATUS_RELEASE_STORE_FILE) + storeFile file(STATUS_RELEASE_STORE_FILE.replaceAll("~", System.properties['user.home'])) storePassword STATUS_RELEASE_STORE_PASSWORD keyAlias STATUS_RELEASE_KEY_ALIAS keyPassword STATUS_RELEASE_KEY_PASSWORD diff --git a/android/gradle.properties b/android/gradle.properties index 14ec015468..9ebb303318 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -19,8 +19,8 @@ android.useDeprecatedNdk=true # To create a new keystore for development purposes (https://developer.android.com/studio/publish/app-signing.html) -# $keytool -genkey -v -keystore ~/status-release-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias alias -STATUS_RELEASE_STORE_FILE=/path/to/status-release-keystore.jks +# $keytool -genkey -v -keystore ./status-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias status +STATUS_RELEASE_STORE_FILE=~/.gradle/status-im.keystore STATUS_RELEASE_STORE_PASSWORD=password -STATUS_RELEASE_KEY_ALIAS=alias +STATUS_RELEASE_KEY_ALIAS=status STATUS_RELEASE_KEY_PASSWORD=password diff --git a/scripts/build-android b/scripts/build-android new file mode 100755 index 0000000000..ad894fe905 --- /dev/null +++ b/scripts/build-android @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +set -eof pipefail + +BRANCH=$1 +if [[ $# -eq 0 ]] ; then + echo 'Branch required as first argument' + exit 0 +fi + +