diff --git a/src/update/066-to-067.ts b/src/update/066-to-067.ts index f3bd87a..455ae4a 100644 --- a/src/update/066-to-067.ts +++ b/src/update/066-to-067.ts @@ -6,11 +6,13 @@ export default { exec: (file: string) => { const plistParsed: any = plist.parse(fs.readFileSync(file, 'utf8')); let cnt = 0; - for (let booterPatch of plistParsed.Booter.Patch) { - if (booterPatch.Identifier == '') { - plistParsed.Booter.Patch[cnt].Identifier = 'Any'; + if ('Patch' in plistParsed.Booter) { + for (let booterPatch of plistParsed.Booter.Patch) { + if (booterPatch.Identifier == '') { + plistParsed.Booter.Patch[cnt].Identifier = 'Any'; + } + cnt++; } - cnt++; } plistParsed.UEFI.Audio.ResetTrafficClass = false; delete plistParsed.UEFI.Input.KeyMergeThreshold; diff --git a/src/update/069-to-070.ts b/src/update/069-to-070.ts index 7961d74..4e7f7f0 100644 --- a/src/update/069-to-070.ts +++ b/src/update/069-to-070.ts @@ -23,6 +23,7 @@ export default { delete plistParsed.PlatformInfo.Generic.AdviseWindows; plistParsed.UEFI.Output.GopPassThrough = plistParsed.UEFI.Output.GopPassThrough == true ? 'Enabled' : 'Disabled'; plistParsed.UEFI.ProtocolOverrides.AppleEg2Info = false; + if (!('PickerVariant' in plistParsed.Misc.Boot)) plistParsed.Misc.Boot.PickerVariant = 'Modern'; switch (plistParsed.Misc.Boot.PickerVariant) { case 'Auto': plistParsed.Misc.Boot.PickerVariant = 'Auto'; @@ -36,6 +37,9 @@ export default { case 'Old': plistParsed.Misc.Boot.PickerVariant = 'Acidanthera\\Chardonnay'; break; + default: + plistParsed.Misc.Boot.PickerVariant = 'Acidanthera\\GoldenGate'; + break; } fs.writeFileSync(file, plist.build(plistParsed)); }