# Building a Bigdroid Project

# Prerequisites

  • Host utilities:
sudo pacman -Sy git curl rsync cpio coreutils e2fsprogs findutils grep wget file squashfs-tools cdrtools p7zip
sudo apt install -y git curl rsync cpio coreutils e2fsprogs findutils grep wget file squashfs-tools genisoimage p7zip
curl --proto '=https' --tlsv1.2 -sSfL "https://git.io/Jc9bH" | bash -s selfinstall
  • Bigdroid:
bashbox install bigdroid

# Building/Compiling

In this example we will build PhoenixOS DarkMatter.

At first we clone the project repository:

git clone https://github.com/supremegamers/darkmatter

Now there are three two ways you can invoke the build command:

  • You can cd into the repository dir and then run it:
cd darkmatter
bigdroid build --release
  • Or you can directly pass the dir path in bigdroid without changing your PWD:
bigdroid build --release darkmatter

Then you should find the output iso in target/release.

# Advanced build command options

  • If you do not want to compress system.img with squashfs:
bigdroid build --no-squashfs --release
  • If you want to stop the build process after injecting the hooks:
bigdroid build --hooks-only --release
  • If you do not want to build ISO and stop at system.img creation:
bigdroid build --image-only --release

Protip: Try bigdroid build --help