mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
19 lines
468 B
Bash
Executable File
19 lines
468 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source ../buildScript/init/env_ndk.sh
|
|
|
|
BUILD=".build"
|
|
|
|
rm -rf $BUILD/android \
|
|
$BUILD/java \
|
|
$BUILD/javac-output \
|
|
$BUILD/src
|
|
|
|
gomobile bind -v -androidapi 21 -cache $(realpath $BUILD) -trimpath -ldflags='-s -w' -tags='with_conntrack,with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api,with_ech' . || exit 1
|
|
rm -r libcore-sources.jar
|
|
|
|
proj=../app/libs
|
|
mkdir -p $proj
|
|
cp -f libcore.aar $proj
|
|
echo ">> install $(realpath $proj)/libcore.aar"
|