Skip to content

Commit

Permalink
fix config.plist bugs (config.plist 관련 버그 수정)
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Nov 17, 2021
1 parent 856fb3e commit 557e35c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/update/066-to-067.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/update/069-to-070.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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));
}
Expand Down

0 comments on commit 557e35c

Please sign in to comment.