@@ -26,6 +26,8 @@ declare -r SYSNAME="$(uname)"
26
26
MYTOOLCHAIN=${1:- GCC53}
27
27
revision=$( git describe --tags $( git rev-list --tags --max-count=1) )
28
28
lsha1=" not a git repo"
29
+ pyversion=$( echo $COL_CYAN " Installed Python version: " $COL_WHITE $( /usr/local/bin/python3 --version) )
30
+ pynone=$( echo -e " $COL_RED Python3 seems missing on this machine, it is required to build Clover " )
29
31
export DIR_OUT=${DIR_OUT:- " $CLOVERROOT " / toolchain/ tools/ output}
30
32
export DIR_SCT=${DIR_SCT:- ${CLOVERROOT} / toolchain/ tools/ Scripts}
31
33
if [[ ! -d ${DIR_SCT} ]] || [[ ! -d ${DIR_OUT} ]]; then
@@ -240,7 +242,12 @@ buildClover() {
240
242
./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG -t $MYTOOLCHAIN
241
243
fi
242
244
fi
243
- # Run a post build script if exist (${DIR_TOOLS}/Scripts/postbuild.sh)
245
+ # Run a post build script if exist (${DIR_TOOLS}/CloverScripts/postbuild.sh)
246
+ if [[ -x " ${DIR_TOOLS} " /CloverScripts/postbuild.sh ]]; then
247
+ echo " Running Clover postbuild script"
248
+ " ${DIR_TOOLS} " /CloverScripts/postbuild.sh " ${CLOVERROOT} " $MYTOOLCHAIN
249
+ fi
250
+ # Run a custom post build script if exist (${DIR_TOOLS}/Scripts/postbuild.sh)
244
251
if [[ -x " ${DIR_TOOLS} " /Scripts/postbuild.sh ]]; then
245
252
echo " Running postbuild script"
246
253
" ${DIR_TOOLS} " /Scripts/postbuild.sh " ${CLOVERROOT} " $MYTOOLCHAIN
@@ -452,13 +459,13 @@ USBMap() {
452
459
open $HOME /Desktop/ClovUtils
453
460
}
454
461
455
- QtiASL () {
462
+ Xiasl () {
456
463
if [[ ! -d $HOME /Desktop/ClovUtils ]]; then
457
464
mkdir -p $HOME /Desktop/ClovUtils
458
465
fi
459
- cd $HOME /Desktop/ClovUtils && curl -sLq https://github.com/ic005k/QtiASL /releases/download/1.1.63 /Xiasl_Mac.dmg > Xiasl_Mac.dmg
466
+ cd $HOME /Desktop/ClovUtils && curl -sLq https://github.com/ic005k/Xiasl /releases/download/1.1.66 /Xiasl_Mac.dmg > Xiasl_Mac.dmg
460
467
hdiutil attach -quiet -noverify -nobrowse Xiasl_Mac.dmg && cp -Rf /Volumes/bin\: release\: Xiasl/Xiasl.app $HOME /Desktop/ClovUtils
461
- hdiutil detach -force /Volumes/bin\: release\: QtiASL
468
+ hdiutil detach -force /Volumes/bin\: release\: Xiasl
462
469
rm -r $HOME /Desktop/ClovUtils/Xiasl_Mac.dmg && open $HOME /Desktop/ClovUtils
463
470
}
464
471
@@ -553,7 +560,7 @@ options=( 'Get CloverConfigPlistValidator '
553
560
' Get NativeDisplayBrightness '
554
561
' Get SSDTTime'
555
562
' Get USBMap'
556
- ' Get QtiASL '
563
+ ' Get Xiasl '
557
564
' Get CsrDecode'
558
565
' Get gibMacOS'
559
566
' Get mountR/W'
@@ -602,8 +609,8 @@ select opt in "${options[@]}"
602
609
USBMap
603
610
break
604
611
;;
605
- " Get QtiASL " )
606
- QtiASL
612
+ " Get Xiasl " )
613
+ Xiasl
607
614
break
608
615
;;
609
616
" Get CsrDecode" )
@@ -638,10 +645,18 @@ Utilities
638
645
menu () {
639
646
echo
640
647
echo -e $COL_GREEN " ------------------------------------------------------------------------------"
641
- echo -e " 🍀 Clover r${revision} $COL_WHITE (SHA: $lsha1 )"
648
+ if [[ ! -x " /usr/local/bin/pip3" ]]; then
649
+ echo -e " ${pynone} "
650
+ fi
651
+ echo -e " $COL_GREEN 🍀 Clover r${revision} $COL_WHITE (SHA: $lsha1 )"
642
652
echo -e " $COL_CYAN TOOLCHAIN: $MYTOOLCHAIN (override example: './buildme XCODE8')"
643
- echo -e $COL_GREEN " ------------------------------------------------------------------------------" $COL_RESET
653
+ if [[ -x " /usr/local/bin/pip3" ]]; then
654
+ echo -e $COL_GREEN " ------------------- ${pyversion} $COL_GREEN ------------------ " $COL_RESET
644
655
echo -e " \n\n\n\n\n\n\n\n"
656
+ else
657
+ echo -e $COL_GREEN " ------------------------------------------------------------------------------" $COL_RESET
658
+ echo -e " \n\n\n\n\n\n\n"
659
+ fi
645
660
PS3='
646
661
Please enter your choice: '
647
662
options=( ' build Clover'
0 commit comments