mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 22:31:56 -06:00
13 lines
395 B
Bash
13 lines
395 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
TARGET=""
|
||
|
|
||
|
while getopts "ai" option
|
||
|
do
|
||
|
case "$option"
|
||
|
in
|
||
|
a) gomobile bind -v -target android -trimpath -ldflags="-s -w" github.com/matrix-org/dendrite/build/gobind-pinecone ;;
|
||
|
i) gomobile bind -v -target ios -trimpath -ldflags="-s -w" github.com/matrix-org/dendrite/build/gobind-pinecone ;;
|
||
|
*) echo "No target specified, specify -a or -i"; exit 1 ;;
|
||
|
esac
|
||
|
done
|