Skip to content

Commit 52145b8

Browse files
authored
Update build
1 parent a8c9240 commit 52145b8

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

build

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ else
1212
fi
1313
ARGS="-v"
1414

15-
while getopts "uaitc:l:dro:p" option
15+
while getopts "utc:l:dro:p" option
1616
do
1717
case "$option"
1818
in
1919
u) UPX=true;;
20-
i) IOS=true;;
21-
a) ANDROID=true;;
2220
t) TABLES=true;;
2321
c) GCFLAGS="$GCFLAGS $OPTARG";;
2422
l) LDFLAGS="$LDFLAGS $OPTARG";;
@@ -33,25 +31,11 @@ if [ -z $TABLES ] && [ -z $DEBUG ]; then
3331
LDFLAGS="$LDFLAGS -s -w"
3432
fi
3533

36-
if [ $IOS ]; then
37-
echo "Building framework for iOS"
38-
go get golang.org/x/mobile/bind
39-
gomobile bind -target ios -tags mobile -o Mesh.framework -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
40-
github.com/RiV-chain/RiV-mesh-extras/src/mobile \
41-
github.com/RiV-chain/RiV-mesh/src/config
42-
elif [ $ANDROID ]; then
43-
echo "Building aar for Android"
44-
go get golang.org/x/mobile/bind
45-
gomobile bind -target android -tags mobile -o mesh.aar -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
46-
github.com/RiV-chain/RiV-mesh-extras/src/mobile \
47-
github.com/RiV-chain/RiV-mesh/src/config
48-
else
49-
for CMD in ./cmd/mesh ./cmd/meshctl ./contrib/ui/mesh-ui ; do
50-
echo "Building: $CMD"
51-
go build $ARGS -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" $CMD
34+
for CMD in ./cmd/mesh ./cmd/meshctl ./contrib/ui/mesh-ui ; do
35+
echo "Building: $CMD"
36+
go build $ARGS -ldflags "$LDFLAGS" -gcflags "$GCFLAGS" $CMD
5237

53-
if [ $UPX ]; then
54-
upx --brute $CMD
55-
fi
56-
done
57-
fi
38+
if [ $UPX ]; then
39+
upx --brute $CMD
40+
fi
41+
done

0 commit comments

Comments
 (0)