mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-23 13:41:16 +01:00
Fix ipwndfu updater
This commit is contained in:
parent
3a05a09fc3
commit
60b6d07f3a
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user