This repository contains all the necessary scripts, tools, and configurations for building the Pinect software from source.
It enables developers to easily build the software on android platforms.
- docker
- Clone the repo:
git clone --recurse-submodules https://github.com/ser-mk/pibuild.git
- Run docker contatiner:
docker pull sermkd/pibuild:1.0.0a
docker run --rm -it -v "$PWD/pibuild:/home/gradle/" sermkd/pibuild:1.0.0a python build.py
- Built apks will be in $PWD/pibuild/build_archive/current/
$ ls pibuild/build_archive/current/
admin-dpc.apk mclient.apk piball.apk pilauncher.apk
If you're building the Pinect software and you notice that not all of the APKs are being generated, one thing you can try is running the build command multiple times. Sometimes, issues with dependencies or missing files can cause the build process to fail, but running the command again can help resolve these issues:
$ docker run --rm -it -v "$PWD/pibuild:/home/gradle/" sermkd/pibuild:1.0.0a python build.py
...
$ ls pibuild/build_archive/current/
admin-dpc.apk mclient.apk
# rerun the build command
$ docker run --rm -it -v "$PWD/pibuild:/home/gradle/" sermkd/pibuild:1.0.0a python build.py
...
$ ls pibuild/build_archive/current/
admin-dpc.apk mclient.apk piball.apk pilauncher.apk