Skip to content

Commit

Permalink
OpenCore 0.9.4 support (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Aug 16, 2023
1 parent d0d6255 commit c379d79
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/update/093-to-094.ts
Original file line number Diff line number Diff line change
@@ -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));
}
}

0 comments on commit c379d79

Please sign in to comment.