Fix ipwndfu updater

This commit is contained in:
LukeZGD 2024-07-18 22:14:18 +08:00
parent 3a05a09fc3
commit 60b6d07f3a
2 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ jobs:
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/sha1
echo "8732b15c7262d68d2c5dd8cdbe0f6efb217d0240" > ../saved/ipwndfu/sha1check
popd
- name: Move linux binaries

View File

@ -1697,12 +1697,13 @@ device_ipwndfu() {
device_enter_mode DFU
local ipwndfu_comm="d0f9b0faae98d042e17fbb47cedf342e983a6bb8"
local ipwndfu_sha1="8732b15c7262d68d2c5dd8cdbe0f6efb217d0240"
if [[ ! -s ../saved/ipwndfu/ipwndfu || $(cat ../saved/ipwndfu/sha1) != "$ipwndfu_sha1" ]]; then
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
unzip -q ipwndfu.zip -d ../saved
mv ../saved/ipwndfu-*/* ../saved/ipwndfu
echo "$ipwndfu_sha1" > ../saved/ipwndfu/sha1
rm -rf ../saved/ipwndfu
mv ../saved/ipwndfu-* ../saved/ipwndfu
echo "$ipwndfu_sha1" > ../saved/ipwndfu/sha1check
rm -rf ../saved/ipwndfu-*
fi
if [[ $platform == "macos" ]]; then