mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-06 16:24:54 +01:00
this should grab the correct build id
This commit is contained in:
1 file changed
+9
-2
+9
-2
@@ -433,13 +433,20 @@ deviceid=$(_info recovery PRODUCT)
|
|||||||
if [ ! "$ipsw" = "" ]; then
|
if [ ! "$ipsw" = "" ]; then
|
||||||
ipswurl=$ipsw
|
ipswurl=$ipsw
|
||||||
else
|
else
|
||||||
buildid=$(curl -sL https://api.ipsw.me/v4/ipsw/$version | "$dir"/jq '.[0] | .buildid' --raw-output)
|
#buildid=$(curl -sL https://api.ipsw.me/v4/ipsw/$version | "$dir"/jq '.[0] | .buildid' --raw-output)
|
||||||
if [[ "$deviceid" == *"iPad"* ]]; then
|
if [[ "$deviceid" == *"iPad"* ]]; then
|
||||||
os=iPadOS
|
os=iPadOS
|
||||||
|
device=iPad
|
||||||
|
elif [[ "$deviceid" == *"iPod"* ]]; then
|
||||||
|
os=iOS
|
||||||
|
device=iPod
|
||||||
else
|
else
|
||||||
os=iOS
|
os=iOS
|
||||||
|
device=iPhone
|
||||||
fi
|
fi
|
||||||
ipswurl=$(curl -sL https://api.appledb.dev/ios/$os\;$buildid.json | "$dir"/jq -r .devices[\"$deviceid\"].ipsw)
|
|
||||||
|
buildid=$(curl -sL https://api.ipsw.me/v4/ipsw/$version | "$dir"/jq '[.[] | select(.identifier | startswith("'$device'")) | .buildid][0]' --raw-output)
|
||||||
|
ipswurl=$(curl -sL https://api.appledb.dev/ios/$os\;$buildid.json | "$dir"/jq -r .devices\[\"$deviceid\"\].ipsw)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Have the user put the device into DFU
|
# Have the user put the device into DFU
|
||||||
|
|||||||
Reference in new issue
Block a user