mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-30 12:43:41 +01:00
Merge pull request #399 from stevezhengshiqi/master
CI: Adapt new buildme and Remove Upload to Release stage
This commit is contained in:
commit
8b2af7e287
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
@ -30,7 +30,9 @@ jobs:
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
|
||||
- name: Build Clover Pack
|
||||
run: ./buildme "" ci
|
||||
run: |
|
||||
chmod +x ./buildme
|
||||
./buildme "" ci
|
||||
|
||||
- name: Prepare Release Packs
|
||||
run: |
|
||||
@ -58,13 +60,13 @@ jobs:
|
||||
CLOVERX64.efi.zip
|
||||
Clover_r*.pkg
|
||||
|
||||
- name: Upload to Release
|
||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: ./*.7z, ./Clover.app*.pkg, ./CloverV2*.zip, ./CLOVERX64.efi.zip, ./Clover_r*.pkg
|
||||
bodyFile: ReleaseNotes.md
|
||||
name: Release v5.1 r${{ env.CUR_TAG }}
|
||||
prerelease: false
|
||||
tag: ${{ env.CUR_TAG }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Upload to Release
|
||||
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||
# uses: ncipollo/release-action@v1
|
||||
# with:
|
||||
# artifacts: ./*.7z, ./Clover.app*.pkg, ./CloverV2*.zip, ./CLOVERX64.efi.zip, ./Clover_r*.pkg
|
||||
# bodyFile: ReleaseNotes.md
|
||||
# name: Release v5.1 r${{ env.CUR_TAG }}
|
||||
# prerelease: false
|
||||
# tag: ${{ env.CUR_TAG }}
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -58,4 +58,3 @@ RELEASE_*/
|
||||
|
||||
#work in progress
|
||||
*_wip
|
||||
|
||||
|
62
buildme
62
buildme
@ -332,106 +332,105 @@ PlistEDPlus() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && curl -qsSLk https://github.com/ic005k/PlistEDPlus/releases/download/1.0.52/PlistEDPlus_Mac.dmg > PlistEDPlus_Mac.dmg
|
||||
hdiutil attach -quiet -noverify -nobrowse PlistEDPlus_Mac.dmg && cp -Rf /Volumes/bin\:release\:PlistEDPlus/PlistEDPlus.app $HOME/Desktop/ClovUtils
|
||||
hdiutil detach -force /Volumes/bin\:release\:PlistEDPlus
|
||||
rm -r $HOME/Desktop/ClovUtils/PlistEDPlus_Mac.dmg && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && curl -qsSLk https://github.com/ic005k/PlistEDPlus/releases/download/1.0.52/PlistEDPlus_Mac.dmg > PlistEDPlus_Mac.dmg
|
||||
hdiutil attach -quiet -noverify -nobrowse PlistEDPlus_Mac.dmg && cp -Rf /Volumes/bin\:release\:PlistEDPlus/PlistEDPlus.app $HOME/Desktop/ClovUtils
|
||||
hdiutil detach -force /Volumes/bin\:release\:PlistEDPlus
|
||||
rm -r $HOME/Desktop/ClovUtils/PlistEDPlus_Mac.dmg && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
Hackintool() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && curl -sLq https://github.com/headkaze/Hackintool/releases/download/3.5.2/Hackintool.zip -o Hackintool.zip
|
||||
unzip -q Hackintool.zip && rm -r Hackintool.zip && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && curl -sLq https://github.com/headkaze/Hackintool/releases/download/3.5.2/Hackintool.zip -o Hackintool.zip
|
||||
unzip -q Hackintool.zip && rm -r Hackintool.zip && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
BitmaskDecode() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/BitmaskDecode && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/BitmaskDecode && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
MaciASL() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && curl -sLq https://github.com/acidanthera/MaciASL/releases/download/1.6.1/MaciASL-1.6.1-RELEASE.dmg > MaciASL-1.6.1-RELEASE.dmg
|
||||
hdiutil attach -quiet -noverify -nobrowse MaciASL-1.6.1-RELEASE.dmg && cp -Rf /Volumes/MaciASL/MaciASL.app $HOME/Desktop/ClovUtils
|
||||
hdiutil detach -force /Volumes/MaciASL
|
||||
rm -r $HOME/Desktop/ClovUtils/MaciASL-1.6.1-RELEASE.dmg && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && curl -sLq https://github.com/acidanthera/MaciASL/releases/download/1.6.1/MaciASL-1.6.1-RELEASE.dmg > MaciASL-1.6.1-RELEASE.dmg
|
||||
hdiutil attach -quiet -noverify -nobrowse MaciASL-1.6.1-RELEASE.dmg && cp -Rf /Volumes/MaciASL/MaciASL.app $HOME/Desktop/ClovUtils
|
||||
hdiutil detach -force /Volumes/MaciASL
|
||||
rm -r $HOME/Desktop/ClovUtils/MaciASL-1.6.1-RELEASE.dmg && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
dmidecode() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils/dmidecode
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/acidanthera/dmidecode dmi-decode && xcodebuild -project ./dmi-decode/dmidecode.xcodeproj -quiet
|
||||
cp -r dmi-decode/dmidecode $HOME/Desktop/ClovUtils/dmidecode && rm -Rf $HOME/Desktop/ClovUtils/dmi-decode && open $HOME/Desktop/ClovUtils
|
||||
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/acidanthera/dmidecode dmi-decode && xcodebuild -project ./dmi-decode/dmidecode.xcodeproj -quiet
|
||||
cp -r dmi-decode/dmidecode $HOME/Desktop/ClovUtils/dmidecode && rm -Rf $HOME/Desktop/ClovUtils/dmi-decode && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
Get-IOReg-Devices() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/LAbyOne/Get-IOReg-Devices
|
||||
mv -f Get-IOReg-Devices/Get\ IOReg\ Devices $HOME/Desktop/ClovUtils/Get\ IOReg-Devices && chmod a+x $HOME/Desktop/ClovUtils/Get\ IOReg-Devices/*.command
|
||||
rm -rf Get-IOReg-Devices && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/LAbyOne/Get-IOReg-Devices
|
||||
mv -f Get-IOReg-Devices/Get\ IOReg\ Devices $HOME/Desktop/ClovUtils/Get\ IOReg-Devices && chmod a+x $HOME/Desktop/ClovUtils/Get\ IOReg-Devices/*.command
|
||||
rm -rf Get-IOReg-Devices && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
NDBrightness () {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/KAMIKAZEUA/NativeDisplayBrightness NDBrightness
|
||||
xcodebuild -project ./NDBrightness/NativeDisplayBrightness.xcodeproj -quiet -configuration Release clean build ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES CONFIGURATION_BUILD_DIR=$HOME/Desktop/ClovUtils
|
||||
rm -Rf $HOME/Desktop/ClovUtils/NDBrightness && rm -r $HOME/Desktop/ClovUtils/*.dSYM && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/KAMIKAZEUA/NativeDisplayBrightness NDBrightness
|
||||
xcodebuild -project ./NDBrightness/NativeDisplayBrightness.xcodeproj -quiet -configuration Release clean build ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES CONFIGURATION_BUILD_DIR=$HOME/Desktop/ClovUtils
|
||||
rm -Rf $HOME/Desktop/ClovUtils/NDBrightness && rm -r $HOME/Desktop/ClovUtils/*.dSYM && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
SSDTTime() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/SSDTTime && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/SSDTTime && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
USBMap() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/USBMap
|
||||
open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/USBMap
|
||||
open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
QtiASL() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && curl -sLq https://github.com/ic005k/QtiASL/releases/download/1.0.60/QtiASL_Mac.dmg > QtiASL_Mac.dmg
|
||||
hdiutil attach -quiet -noverify -nobrowse QtiASL_Mac.dmg && cp -Rf /Volumes/bin\:release\:QtiASL/QtiASL.app $HOME/Desktop/ClovUtils
|
||||
hdiutil detach -force /Volumes/bin\:release\:QtiASL
|
||||
rm -r $HOME/Desktop/ClovUtils/QtiASL_Mac.dmg && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && curl -sLq https://github.com/ic005k/QtiASL/releases/download/1.0.60/QtiASL_Mac.dmg > QtiASL_Mac.dmg
|
||||
hdiutil attach -quiet -noverify -nobrowse QtiASL_Mac.dmg && cp -Rf /Volumes/bin\:release\:QtiASL/QtiASL.app $HOME/Desktop/ClovUtils
|
||||
hdiutil detach -force /Volumes/bin\:release\:QtiASL
|
||||
rm -r $HOME/Desktop/ClovUtils/QtiASL_Mac.dmg && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
CsrDecode() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils/CsrDecode
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/CsrDecode && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/CsrDecode && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
gibMacOS() {
|
||||
if [[ ! -d $HOME/Desktop/ClovUtils ]]; then
|
||||
mkdir -p $HOME/Desktop/ClovUtils
|
||||
fi
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/gibMacOS && open $HOME/Desktop/ClovUtils
|
||||
cd $HOME/Desktop/ClovUtils && git clone -q https://github.com/corpnewt/gibMacOS && open $HOME/Desktop/ClovUtils
|
||||
}
|
||||
|
||||
|
||||
testing() {
|
||||
clear
|
||||
clear
|
||||
echo
|
||||
echo -e $COL_GREEN"-----------------------------------------------------------"$COL_RESET
|
||||
cd "${CLOVERROOT}"
|
||||
@ -758,10 +757,11 @@ menu
|
||||
set -e
|
||||
if [[ "$2" == ci ]]; then
|
||||
buildClover
|
||||
buildCCPV
|
||||
BLC
|
||||
buildPkg
|
||||
buildIso
|
||||
buildApp
|
||||
buildCPV
|
||||
else
|
||||
menu
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user