Update build script

This commit is contained in:
Neil Alexander 2021-02-16 15:52:59 +00:00
parent d9aeb293e2
commit 37da2bcbe9
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -6,17 +6,8 @@ while getopts "ai" option
do do
case "$option" case "$option"
in in
a) TARGET="android";; a) gomobile bind -v -target android github.com/matrix-org/dendrite/build/gobind-pinecone ;;
i) TARGET="ios";; 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 esac
done 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