From c379d793381332903c7a05358ce41782abd6fc6d Mon Sep 17 00:00:00 2001 From: mswgen <54498184+mswgen@users.noreply.github.com> Date: Wed, 16 Aug 2023 23:57:21 +0900 Subject: [PATCH] OpenCore 0.9.4 support (2) --- src/update/093-to-094.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/update/093-to-094.ts diff --git a/src/update/093-to-094.ts b/src/update/093-to-094.ts new file mode 100644 index 0000000..a951b5c --- /dev/null +++ b/src/update/093-to-094.ts @@ -0,0 +1,17 @@ +// import plist and fs +import fs from 'fs'; +import plist from 'plist'; +export default { + from: 93, + configPlistChange: true, + exec: (file: string) => { + // read ${file} as utf8, parse it as plist, and save it to variable `plistParsed` + const plistParsed: any = plist.parse(fs.readFileSync(file, 'utf8')); + /* + // Changes of OpenCore 0.9.4 + set Misc - Boot - InstanceIdentifier to empty string + */ + plistParsed.Misc.Boot.InstanceIdentifier = ''; + fs.writeFileSync(file, plist.build(plistParsed)); + } +} \ No newline at end of file