Skip to content

Commit

Permalink
apply beta systemversion stuff on other
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Feb 8, 2024
1 parent 98f178d commit 854c5af
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2107,6 +2107,10 @@ ipsw_prepare_jailbreak() {
if [[ $1 == "iboot" ]]; then
ExtraArgs+=" iBoot.tar"
fi
if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar"
fi

log "Preparing custom IPSW: $dir/ipsw $ipsw_path.ipsw temp.ipsw $ExtraArgs ${JBFiles[*]}"
"$dir/ipsw" "$ipsw_path.ipsw" temp.ipsw $ExtraArgs ${JBFiles[@]}
Expand Down Expand Up @@ -2636,7 +2640,6 @@ ipsw_prepare_32bit() {
esac
fi
fi

if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar"
Expand Down Expand Up @@ -2781,7 +2784,7 @@ ipsw_bbreplace() {
cat tt | sed "s,$path,Firmware/$device_use_bb," > BuildManifest.plist
rm t tt

zip -r0 temp.ipsw Firmware BuildManifest.plist
zip -r0 temp.ipsw Firmware/$device_use_bb BuildManifest.plist
}

patch_iboot() {
Expand Down Expand Up @@ -3181,6 +3184,11 @@ ipsw_prepare_ios4powder() {
echo "0000010: 626F" | xxd -r - iBoot
echo "0000020: 626F" | xxd -r - iBoot
fi
if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar"
fi

log "Preparing custom IPSW: $dir/powdersn0w $ipsw_path.ipsw temp.ipsw -base $ipsw_base_path.ipsw $ExtraArgs ${JBFiles[*]}"
"$dir/powdersn0w" "$ipsw_path.ipsw" temp.ipsw -base "$ipsw_base_path.ipsw" $ExtraArgs ${JBFiles[@]}

Expand Down Expand Up @@ -3285,7 +3293,6 @@ ipsw_prepare_powder() {
tar -cvf iBoot.tar iBEC
ExtraArgs+=" iBoot.tar"
fi

if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar"
Expand Down

0 comments on commit 854c5af

Please sign in to comment.