2022-07-04 12:12:27 +02:00
|
|
|
name: Create zip files
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
create-zip-files:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Move linux binaries
|
|
|
|
run: |
|
|
|
|
mkdir ./exclude
|
|
|
|
mv ./resources/lib/* ./exclude/
|
|
|
|
mv ./resources/tools/*linux* ./exclude/
|
|
|
|
|
2022-07-04 13:58:45 +02:00
|
|
|
- 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/*
|
2022-07-04 12:12:27 +02:00
|
|
|
|
2022-07-04 13:58:45 +02:00
|
|
|
- name: Zip macos files
|
|
|
|
run: zip -r ${{ github.event.repository.name }}_macos.zip resources/ restore.sh README.md
|
2022-07-04 12:12:27 +02:00
|
|
|
|
|
|
|
- name: Move macos binaries
|
|
|
|
run: |
|
|
|
|
mv ./exclude/*.so.1.1 ./resources/lib/
|
|
|
|
mv ./exclude/* ./resources/tools/
|
|
|
|
mv ./resources/tools/*macos* ./exclude/
|
|
|
|
|
2022-07-04 13:58:45 +02:00
|
|
|
- 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/*
|
2022-07-04 12:12:27 +02:00
|
|
|
|
2022-07-04 13:58:45 +02:00
|
|
|
- name: Zip linux files
|
|
|
|
run: zip -r ${{ github.event.repository.name }}_linux.zip resources/ restore.sh README.md
|
2022-07-04 12:12:27 +02:00
|
|
|
|
|
|
|
- name: Remove linux binaries
|
|
|
|
run: rm ./resources/lib/* ./resources/tools/*linux
|
|
|
|
|
2022-07-04 13:58:45 +02:00
|
|
|
- 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
|
2022-07-04 12:12:27 +02:00
|
|
|
with:
|
2022-07-04 13:58:45 +02:00
|
|
|
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
|