From a254d5f0505179aef43ac549ec121f55c88485de Mon Sep 17 00:00:00 2001 From: sh <37271604+shumvgolove@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:14:32 +0300 Subject: [PATCH] build-android: specify commit (#904) --- scripts/android/build-android.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/android/build-android.sh b/scripts/android/build-android.sh index af71a3af89..4edd9d42db 100755 --- a/scripts/android/build-android.sh +++ b/scripts/android/build-android.sh @@ -4,6 +4,7 @@ set -eu u="$USER" tmp=$(mktemp -d -t) +commit="${1:-nix-android}" commands="nix git gradle unzip curl" nix_install() { @@ -32,7 +33,7 @@ git_setup() { git clone https://github.com/simplex-chat/simplex-chat "$tmp/simplex-chat" # Switch to nix-android branch - git -C "$tmp/simplex-chat" checkout nix-android + git -C "$tmp/simplex-chat" checkout "$commit" # Create missing folders mkdir -p "$tmp/simplex-chat/apps/android/app/src/main/cpp/libs/arm64-v8a" @@ -40,6 +41,7 @@ git_setup() { checks() { set +u + for i in $commands; do case $i in nix)