mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-24 12:41:34 +00:00
25 lines
433 B
Bash
25 lines
433 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
#!/bin/sh
|
||
|
|
||
|
TARGET=""
|
||
|
|
||
|
while getopts "ai" option
|
||
|
do
|
||
|
case "$option"
|
||
|
in
|
||
|
a) TARGET="android";;
|
||
|
i) TARGET="ios";;
|
||
|
esac
|
||
|
done
|
||
|
|
||
|
if [[ $TARGET = "" ]];
|
||
|
then
|
||
|
echo "No target specified, specify -a or -i"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
gomobile bind -v \
|
||
|
-target $TARGET \
|
||
|
-ldflags "-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=dendrite" \
|
||
|
github.com/matrix-org/dendrite/build/gobind-pinecone
|