mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
update buildme by STLVNUB
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
f5dc576107
commit
64c888a615
19
buildme
19
buildme
@ -114,9 +114,25 @@ else
|
||||
fi
|
||||
}
|
||||
|
||||
# Clone OR Update OpenCorePkg
|
||||
function clone_OpenCorePkg() {
|
||||
cd "${CLOVERROOT}"
|
||||
if [ ! -d OpenCorePkg/AppleModels ]; then
|
||||
echo "Cloning OpenCorePkg...."
|
||||
git clone https://github.com/CloverHackyColor/OpenCorePkg.git > /dev/null
|
||||
cd "${OpenCorePkg}"
|
||||
git submodule update --init
|
||||
else
|
||||
echo "Updating OpenCorePkg...."
|
||||
cd "${OpenCorePkg}"
|
||||
git pull > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
updateClover() {
|
||||
echo "[UPDATE CLOVER]"
|
||||
cd "${CLOVERROOT}"
|
||||
clone_OpenCorePkg
|
||||
if [[ -d .git ]]; then
|
||||
git fetch --all --recurse-submodules
|
||||
git pull --recurse-submodules origin master
|
||||
@ -750,8 +766,10 @@ menu
|
||||
}
|
||||
|
||||
# Main
|
||||
clone_OpenCorePkg
|
||||
set -e
|
||||
if [[ "$2" == ci ]]; then
|
||||
clone_OpenCorePkg
|
||||
buildClover
|
||||
buildCCPV
|
||||
BLC
|
||||
@ -759,5 +777,6 @@ if [[ "$2" == ci ]]; then
|
||||
buildIso
|
||||
buildApp
|
||||
else
|
||||
clone_OpenCorePkg
|
||||
menu
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user