mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-11 15:59:08 +01:00
Update build
This commit is contained in:
parent
1b3602b61a
commit
1e8bc1b1c6
60
.github/workflows/build.yml
vendored
60
.github/workflows/build.yml
vendored
@ -12,13 +12,15 @@ jobs:
|
||||
mv ./resources/lib/* ./exclude/
|
||||
mv ./resources/tools/*linux* ./exclude/
|
||||
|
||||
- name: Zip files
|
||||
run: zip -r ${{ github.event.repository.name }}-macos.zip resources/ restore.sh README.md
|
||||
- name: Download and extract libimobiledevice_macos
|
||||
run: |
|
||||
curl -LO https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_macos.zip
|
||||
mkdir ./resources/libimobiledevice_macos
|
||||
unzip libimobiledevice_macos.zip -d ./resources/libimobiledevice_macos
|
||||
chmod +x ./resources/libimobiledevice_macos/*
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}-macos
|
||||
path: ${{ github.event.repository.name }}-macos.zip
|
||||
- name: Zip macos files
|
||||
run: zip -r ${{ github.event.repository.name }}_macos.zip resources/ restore.sh README.md
|
||||
|
||||
- name: Move macos binaries
|
||||
run: |
|
||||
@ -26,22 +28,42 @@ jobs:
|
||||
mv ./exclude/* ./resources/tools/
|
||||
mv ./resources/tools/*macos* ./exclude/
|
||||
|
||||
- name: Zip files
|
||||
run: zip -r ${{ github.event.repository.name }}-linux.zip resources/ restore.sh README.md
|
||||
- name: Download and extract libimobiledevice_linux
|
||||
run: |
|
||||
rm -rf ./resources/libimobiledevice*
|
||||
curl -LO https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_linux.zip
|
||||
mkdir ./resources/libimobiledevice_linux
|
||||
unzip libimobiledevice_linux.zip -d ./resources/libimobiledevice_linux
|
||||
chmod +x ./resources/libimobiledevice_linux/*
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}-linux
|
||||
path: ${{ github.event.repository.name }}-linux.zip
|
||||
- name: Zip linux files
|
||||
run: zip -r ${{ github.event.repository.name }}_linux.zip resources/ restore.sh README.md
|
||||
|
||||
- name: Remove linux binaries
|
||||
run: rm ./resources/lib/* ./resources/tools/*linux
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
- name: Download and extract libimobiledevice_win
|
||||
run: |
|
||||
rm -rf ./resources/libimobiledevice*
|
||||
curl -LO https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip
|
||||
mkdir ./resources/libimobiledevice_win
|
||||
unzip libimobiledevice_win.zip -d ./resources/libimobiledevice_win
|
||||
|
||||
- name: Download and extract tools_win
|
||||
run: |
|
||||
curl -LO https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip
|
||||
unzip tools_win.zip -d ./resources
|
||||
|
||||
- name: Zip win files
|
||||
run: zip -r ${{ github.event.repository.name }}_win.zip resources/ restore.cmd restore.sh README.md
|
||||
|
||||
- name: Update latest release
|
||||
uses: pyTooling/Actions/releaser@main
|
||||
with:
|
||||
name: ${{ github.event.repository.name }}-win
|
||||
path: |
|
||||
resources/
|
||||
restore.cmd
|
||||
restore.sh
|
||||
README.md
|
||||
tag: latest
|
||||
rm: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: |
|
||||
${{ github.event.repository.name }}_macos.zip
|
||||
${{ github.event.repository.name }}_linux.zip
|
||||
${{ github.event.repository.name }}_win.zip
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@
|
||||
*.shsh2
|
||||
*.txt
|
||||
Cydia*
|
||||
first_run
|
||||
iP*Custom*/
|
||||
iP*Restore/
|
||||
resources/ch3rryflower/
|
||||
|
@ -180,10 +180,12 @@ InstallDepends() {
|
||||
|
||||
elif [[ $platform == "win" ]]; then
|
||||
pacman -Sy --noconfirm --needed ca-certificates curl openssh unzip zip
|
||||
SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip 4433ad5d6661cb5a374edccf771d4f2b761e7e46
|
||||
Log "Extracting Windows tools..."
|
||||
unzip -oq tools_win.zip -d ../resources
|
||||
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "75ae3af3347b89107f0f6b7e41fde42e6ccdd404")
|
||||
if [[ ! $(ls ../resources/tools/*win*) ]]; then
|
||||
SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip 4433ad5d6661cb5a374edccf771d4f2b761e7e46
|
||||
Log "Extracting Windows tools..."
|
||||
unzip -oq tools_win.zip -d ../resources
|
||||
fi
|
||||
|
||||
else
|
||||
Error "Distro not detected/supported by the install script." "See the repo README for supported OS versions/distros"
|
||||
@ -208,6 +210,7 @@ InstallDepends() {
|
||||
elif [[ $MPath != "./resources"* ]]; then
|
||||
mkdir ../resources/libimobiledevice_$platform
|
||||
fi
|
||||
touch ../resources/first_run
|
||||
|
||||
cd ..
|
||||
Log "Install script done! Please run the script again to proceed"
|
||||
|
@ -97,7 +97,7 @@ Main() {
|
||||
|
||||
if [[ $1 == "Install" || -z $bspatch || ! -e $ideviceinfo || ! -e $irecoverychk ||
|
||||
! -e $ideviceenterrecovery || ! -e $iproxy || -z $python ||
|
||||
! -d ./resources/libimobiledevice_$platform ]]; then
|
||||
! -e ./resources/first_run ]]; then
|
||||
if [[ ! -e $ideviceinfo || ! -e $irecoverychk ||
|
||||
! -e $ideviceenterrecovery || ! -e $iproxy ]]; then
|
||||
rm -rf ./resources/libimobiledevice_$platform
|
||||
|
Loading…
x
Reference in New Issue
Block a user