Skip to content

Instantly share code, notes, and snippets.

@TheK0tYaRa
Created August 13, 2022 19:29
Show Gist options
  • Save TheK0tYaRa/3505ce93ead9fb4b0c791b73ae1888fd to your computer and use it in GitHub Desktop.
Save TheK0tYaRa/3505ce93ead9fb4b0c791b73ae1888fd to your computer and use it in GitHub Desktop.
OrangeFox ultimate build script attempt
#!/bin/bash
if [ $# -eq 0 ]; then
echo "No arguments provided"
exit 1
fi
[[ -e fox_10.0 ]] || true # git clone ##TODO add proper link here
cd fox_10.0
2>/dev/null 1>/dev/null source build/envsetup.sh &
export ALLOW_MISSING_DEPENDENCIES=true
export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
export LC_ALL="C"
export OF_MAINTAINER="TheK0tYaRa" # Put your Telegram username(s) here
case $1 in
lancelot)
export OF_FLASHLIGHT_ENABLE=0
export OF_SCREEN_H=2340
export OF_STATUS_H=-84
export OF_STATUS_INDENT_LEFT=48
export OF_STATUS_INDENT_RIGHT=48
export OF_CLOCK_POS=1
export FOX_ENABLE_APP_MANAGER=1
export FOX_USE_NANO_EDITOR=1
export FOX_EXCLUDE_NANO_EDITOR=1
export FOX_ASH_IS_BASH=1
export FOX_USE_BASH_SHELL=1
;;
*)
echo "This script only works with presets. Add them manually if you wish."
exit 1
;;
esac
if [ "$2" == "clean" ]; then
make clean
fi
lunch omni_"$1"-eng
CPUs=$(grep -c ^processor /proc/cpuinfo)-1
mka recoveryimage -j"$CPUs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment