2022-07-07 22:16:10 +02:00
|
|
|
all: prepare debug
|
|
|
|
|
|
|
|
prepare: activate cleanrns getrns
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-(rm ./__pycache__ -r)
|
|
|
|
-(rm ./app_storage -r)
|
|
|
|
-(rm ./bin -r)
|
2022-07-07 22:34:01 +02:00
|
|
|
|
|
|
|
cleanlibs:
|
|
|
|
buildozer android clean
|
2022-07-07 22:16:10 +02:00
|
|
|
|
2022-07-07 22:34:01 +02:00
|
|
|
cleanall: clean cleanlibs
|
|
|
|
|
2022-07-07 22:16:10 +02:00
|
|
|
activate:
|
|
|
|
(. venv/bin/activate)
|
|
|
|
|
2022-09-17 16:00:55 +02:00
|
|
|
pacthfiles: patchsdl injectxml
|
|
|
|
|
|
|
|
patchsdl:
|
|
|
|
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a/build/bootstrap_builds/sdl2/jni/SDL/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
|
|
|
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
|
|
|
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a/dists/sideband/jni/SDL/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
|
|
|
|
|
|
|
injectxml:
|
|
|
|
mkdir -p .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/res/xml
|
|
|
|
mkdir -p .buildozer/android/platform/build-arm64-v8a/dists/sideband/templates
|
|
|
|
cp patches/device_filter.xml .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/res/xml/
|
|
|
|
cp patches/AndroidManifest.tmpl.xml .buildozer/android/platform/build-arm64-v8a/dists/sideband/templates/
|
|
|
|
|
2022-07-07 22:16:10 +02:00
|
|
|
debug:
|
|
|
|
buildozer android debug
|
|
|
|
|
2022-09-17 16:00:55 +02:00
|
|
|
prebake:
|
|
|
|
-(buildozer android release)
|
|
|
|
@(echo Prebake finished, applying patches and rebuilding...)
|
|
|
|
-(sleep 2)
|
|
|
|
|
2022-07-07 22:16:10 +02:00
|
|
|
release:
|
|
|
|
buildozer android release
|
|
|
|
|
2022-07-07 22:34:01 +02:00
|
|
|
postbuild: cleanrns
|
2022-07-07 22:16:10 +02:00
|
|
|
|
2022-09-17 16:00:55 +02:00
|
|
|
apk: prepare prebake pacthfiles release postbuild
|
2022-07-07 22:16:10 +02:00
|
|
|
|
2022-09-17 16:00:55 +02:00
|
|
|
devapk: prepare prebake pacthfiles debug postbuild
|
2022-07-07 22:16:10 +02:00
|
|
|
|
2022-07-08 13:53:04 +02:00
|
|
|
version:
|
|
|
|
@(echo $$(python ./gv.py))
|
|
|
|
|
2022-07-07 22:16:10 +02:00
|
|
|
install:
|
2022-07-08 13:53:04 +02:00
|
|
|
adb install bin/sideband-$$(python ./gv.py)-arm64-v8a-release.apk
|
2022-07-07 22:16:10 +02:00
|
|
|
|
|
|
|
console:
|
|
|
|
(adb logcat | grep python)
|
|
|
|
|
|
|
|
getrns:
|
|
|
|
(cp -rv ../../Reticulum/RNS ./;rm ./RNS/Utilities/RNS;rm ./RNS/__pycache__ -r)
|
|
|
|
|
|
|
|
cleanrns:
|
|
|
|
-(rm ./RNS -r)
|