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: | run: |
mkdir saved mkdir saved
pushd resources 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 curl -L https://github.com/LukeZGD/Legacy-iOS-Kit-Keys/archive/refs/heads/master.zip -o keys.zip
unzip keys.zip -d . unzip keys.zip -d .
unzip ipwndfu.zip -d . unzip ipwndfu.zip -d .
cp -r Legacy-iOS-Kit-Keys-master/* firmware cp -r Legacy-iOS-Kit-Keys-master/* firmware
mv ipwndfu*/ ../saved/ipwndfu mv ipwndfu*/ ../saved/ipwndfu
rm -rf Legacy-iOS-Kit-Keys-master/ ipwndfu.zip keys.zip rm -rf Legacy-iOS-Kit-Keys-master/ ipwndfu.zip keys.zip
echo "8732b15c7262d68d2c5dd8cdbe0f6efb217d0240" > ../saved/ipwndfu/sha1check echo "11e989557a7c4b75d70be14ac0ebfc2f9ec80791" > ../saved/ipwndfu/sha1check
popd popd
- name: Move linux binaries - name: Move linux binaries

View File

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