Update ipwndfu and small fix

This commit is contained in:
LukeeGD 2024-08-24 16:53:07 +08:00
parent 1bdbbfc9fb
commit c0edc8d96f
2 changed files with 8 additions and 6 deletions

View File

@ -28,14 +28,14 @@ jobs:
run: |
mkdir saved
pushd resources
curl -L https://github.com/LukeZGD/ipwndfu/archive/d0f9b0faae98d042e17fbb47cedf342e983a6bb8.zip -o ipwndfu.zip
curl -L https://github.com/LukeZGD/ipwndfu/archive/1d22fd01b0daf52bbcf1ce730022d4212d87f967.zip -o ipwndfu.zip
curl -L https://github.com/LukeZGD/Legacy-iOS-Kit-Keys/archive/refs/heads/master.zip -o keys.zip
unzip keys.zip -d .
unzip ipwndfu.zip -d .
cp -r Legacy-iOS-Kit-Keys-master/* firmware
mv ipwndfu*/ ../saved/ipwndfu
rm -rf Legacy-iOS-Kit-Keys-master/ ipwndfu.zip keys.zip
echo "8732b15c7262d68d2c5dd8cdbe0f6efb217d0240" > ../saved/ipwndfu/sha1check
echo "11e989557a7c4b75d70be14ac0ebfc2f9ec80791" > ../saved/ipwndfu/sha1check
popd
- name: Move linux binaries

View File

@ -1722,8 +1722,8 @@ device_ipwndfu() {
fi
device_enter_mode DFU
local ipwndfu_comm="d0f9b0faae98d042e17fbb47cedf342e983a6bb8"
local ipwndfu_sha1="8732b15c7262d68d2c5dd8cdbe0f6efb217d0240"
local ipwndfu_comm="1d22fd01b0daf52bbcf1ce730022d4212d87f967"
local ipwndfu_sha1="11e989557a7c4b75d70be14ac0ebfc2f9ec80791"
if [[ ! -s ../saved/ipwndfu/ipwndfu || $(cat ../saved/ipwndfu/sha1check) != "$ipwndfu_sha1" ]]; then
rm -rf ../saved/ipwndfu-*
download_file https://github.com/LukeZGD/ipwndfu/archive/$ipwndfu_comm.zip ipwndfu.zip $ipwndfu_sha1
@ -6786,9 +6786,11 @@ menu_ipsw() {
[643]* ) ipsw_canhacktivate=1;;
esac
;;
[654]* | 3.1* )
[6543]* )
device_target_vers="$1"
if [[ $device_target_vers != "3.0"* ]]; then
ipsw_canhacktivate=1
fi
if [[ $device_type == "iPhone2,1" && $1 != "4.1" ]]; then
ipsw_cancustomlogo=1
fi