You've already forked android-client
mirror of
https://github.com/netbirdio/android-client.git
synced 2026-05-22 17:10:49 -07:00
24 lines
582 B
Bash
Executable File
24 lines
582 B
Bash
Executable File
#!/bin/bash
|
|
# bash build-android-lib.sh ~/projects/netbird
|
|
|
|
set -e
|
|
|
|
rn_app_path=$(pwd)
|
|
netbirdPath=$1
|
|
if [ -z "${1+x}" ]
|
|
then
|
|
netbirdPath=${GOPATH}/src/github.com/netbirdio/netbird
|
|
fi
|
|
|
|
version=$2
|
|
if [ -z "${2+x}" ]
|
|
then
|
|
version=development
|
|
fi
|
|
|
|
cd $netbirdPath
|
|
gomobile init
|
|
CGO_ENABLED=0 gomobile bind -o $rn_app_path/android/netbird/netbird.aar -javapkg=io.netbird.gomobile -ldflags="-X golang.zx2c4.com/wireguard/ipc.socketDirectory=/data/data/io.netbird.client/cache/wireguard -X github.com/netbirdio/netbird/version.version=$version" $netbirdPath/client/android
|
|
|
|
cd -
|