Created
August 13, 2022 19:29
-
-
Save TheK0tYaRa/3505ce93ead9fb4b0c791b73ae1888fd to your computer and use it in GitHub Desktop.
OrangeFox ultimate build script attempt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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