apply beta systemversion stuff on other

This commit is contained in:
LukeZGD 2024-02-08 13:40:29 +08:00
parent 98f178d603
commit 854c5af1c5

View File

@ -2107,6 +2107,10 @@ ipsw_prepare_jailbreak() {
if [[ $1 == "iboot" ]]; then if [[ $1 == "iboot" ]]; then
ExtraArgs+=" iBoot.tar" ExtraArgs+=" iBoot.tar"
fi 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[*]}" log "Preparing custom IPSW: $dir/ipsw $ipsw_path.ipsw temp.ipsw $ExtraArgs ${JBFiles[*]}"
"$dir/ipsw" "$ipsw_path.ipsw" temp.ipsw $ExtraArgs ${JBFiles[@]} "$dir/ipsw" "$ipsw_path.ipsw" temp.ipsw $ExtraArgs ${JBFiles[@]}
@ -2636,7 +2640,6 @@ ipsw_prepare_32bit() {
esac esac
fi fi
fi fi
if [[ $ipsw_isbeta == 1 ]]; then if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar" ExtraArgs+=" systemversion.tar"
@ -2781,7 +2784,7 @@ ipsw_bbreplace() {
cat tt | sed "s,$path,Firmware/$device_use_bb," > BuildManifest.plist cat tt | sed "s,$path,Firmware/$device_use_bb," > BuildManifest.plist
rm t tt rm t tt
zip -r0 temp.ipsw Firmware BuildManifest.plist zip -r0 temp.ipsw Firmware/$device_use_bb BuildManifest.plist
} }
patch_iboot() { patch_iboot() {
@ -3181,6 +3184,11 @@ ipsw_prepare_ios4powder() {
echo "0000010: 626F" | xxd -r - iBoot echo "0000010: 626F" | xxd -r - iBoot
echo "0000020: 626F" | xxd -r - iBoot echo "0000020: 626F" | xxd -r - iBoot
fi 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[*]}" 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[@]} "$dir/powdersn0w" "$ipsw_path.ipsw" temp.ipsw -base "$ipsw_base_path.ipsw" $ExtraArgs ${JBFiles[@]}
@ -3285,7 +3293,6 @@ ipsw_prepare_powder() {
tar -cvf iBoot.tar iBEC tar -cvf iBoot.tar iBEC
ExtraArgs+=" iBoot.tar" ExtraArgs+=" iBoot.tar"
fi fi
if [[ $ipsw_isbeta == 1 ]]; then if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar" ExtraArgs+=" systemversion.tar"