mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-20 10:44:32 +10:00
Implement single binary for 10.10-12.0
This commit is contained in:
10
payloads/binary.py
Normal file
10
payloads/binary.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
path = './dist/OpenCore-Patcher.app/Contents/MacOS/OpenCore-Patcher'
|
||||
find = b'\x00\x0D\x0A\x00'
|
||||
replace = b'\x00\x0A\x0A\x00'
|
||||
# Open file in binary mode
|
||||
with open(path, 'rb') as f:
|
||||
data = f.read()
|
||||
data = data.replace(find, replace)
|
||||
with open(path, 'wb') as f:
|
||||
f.write(data)
|
||||
Reference in New Issue
Block a user