WundermentOS build scripts.
This repository contains the build and setup scripts for configuring a WundermentOS build server.
Pre-requisits:
- An Ubuntu 18.04 based system installed and configured.
- Git and other required tools for installing and building LineageOS.
Installation steps:
- Create a new user on your system named WundermentOS
- Login to the new user account
- Checkout the WundermentOS build scripts in to the home directory of your user:
git clone https://github.com/Wunderment/build_tasks.git tasks
- run the installation script:
~/tasks/install/install.sh
- Checkout the LineageOS source code (for more complete instructions see the LineageOS wiki, ie. https://wiki.lineageos.org/devices/fajita/build):
cd ~/android
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1 lineage-18.1
cd lineage-18.1
repo sync
- Make the necessary changes to your Wunderment config by editing the following files:
~/.WundermentOS/deploy-info.sh
~/.WundermentOS/devices.sh
~/.WundermentOS/log-email-address.sh
- Create your LinageOS signing keys, see https://wiki.lineageos.org/signing_builds.html for details.
- Update the F-Droid apk:
~/tasks/source/update-f-droid-apk.sh
- Update the UnifiedNlp apk:
~/tasks/source/update-unifiednlp-apk.sh
- Run the WundermentOS source.sh:
~/tasks/source/source.sh
-
Rerun repo sync on LineageOS.
-
Checkout the Wunderment devices repo:
cd ~/devices
git clone https://github.com/Wunderment/build_devices.git
- Update the firmware/blobs/stock os for each of your devices, ie:
~/devices/[device]/stock_os/get-stock-os.sh
~/devices/[device]/firmware/extract-stock-os-firmware.sh
~/devices/[device]/blobs/extract-stock-os-blobs.sh
- Run test builds and look for errors:
cd ~/devices/[device]/build
./build.sh build
- Run test signing and look for errors:
cd ~/devices/dumpling/build
./build.sh sign