Skip to content

Commit

Permalink
Fix ipwndfu updater
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Jul 18, 2024
1 parent 3a05a09 commit 60b6d07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60b6d07

Please sign in to comment.