From 37da2bcbe932ac347f358ab5e24be9dffc060a34 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 16 Feb 2021 15:52:59 +0000 Subject: [PATCH] Update build script --- build/gobind-pinecone/build.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/build/gobind-pinecone/build.sh b/build/gobind-pinecone/build.sh index d94f0b07f..733803027 100644 --- a/build/gobind-pinecone/build.sh +++ b/build/gobind-pinecone/build.sh @@ -6,17 +6,8 @@ while getopts "ai" option do case "$option" in - a) TARGET="android";; - i) TARGET="ios";; + a) gomobile bind -v -target android github.com/matrix-org/dendrite/build/gobind-pinecone ;; + i) gomobile bind -v -target ios github.com/matrix-org/dendrite/build/gobind-pinecone ;; + *) echo "No target specified, specify -a or -i"; exit 1 ;; esac -done - -if [[ $TARGET = "" ]]; -then - echo "No target specified, specify -a or -i" - exit 1 -fi - -gomobile bind -v \ - -target $TARGET \ - github.com/matrix-org/dendrite/build/gobind-pinecone \ No newline at end of file +done \ No newline at end of file