This repository contains some useful bash scripts for fully automated building of LineageOS based ROMs or TWRP recovery for your device. These bash based scripts are easy to use and they just needs to be executed in terminal from the root folder of source you want to build from (LineageOS or TWRP)
-
Scripts in this repository
- build_all.sh - builds TWRP for all Liquid Porting And Development devices (only for LPAD admins)
- build_lineageos.sh - builds LineageOS for one particular device
- build_twrp.sh - builds TWRP for one particular device
-
Misc. scripts
- install_megatools.sh - installs MEGA for uploading builds
Now we'll clone them and cd
to them by running these commands:
git clone https://github.com/hejsekvojtech/build_scripts.git
cd build_scripts
Before using these build scripts you have to install utilities for uploading builds. The following script is made for MEGA installation. Install it by executing following commands from build_scripts folder:
bash utils/install_megatools.sh
After installing required utilities you have to configure script you want to use by opening it with text editor and changing following:
export device_tree=
export vendor_tree=
export brand=
export device=
export branch=
export twrpver=
export lineagever=
Once your script is set-up, place it to the root of TWRP or LineageOS source. If you don't have it synced yet, you can use these links:
For TWRP click here
For LineageOS click here
Once your choosen and configured script is placed into the root of required source, execute it by:
bash <script name>