mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-14 03:16:28 +10:00
Update sign.command
This commit is contained in:
@@ -60,7 +60,8 @@ fi
|
|||||||
|
|
||||||
echo "Signing OpenCore..."
|
echo "Signing OpenCore..."
|
||||||
./RsaTool -sign "${OCPath}/vault.plist" "${OCPath}/vault.sig" "${PubKey}" || abort "Failed to patch ${PubKey}"
|
./RsaTool -sign "${OCPath}/vault.plist" "${OCPath}/vault.sig" "${PubKey}" || abort "Failed to patch ${PubKey}"
|
||||||
off=$(($(./strings -a -t d "${OCBin}" | /usr/bin/grep "=BEGIN OC VAULT=" | /usr/bin/awk '{print $1}') + 16))
|
|
||||||
|
off=$((0x$(/usr/bin/hexdump -C "${OCBin}" | /usr/bin/grep "=BEGIN OC VAULT=" | /usr/bin/awk '{print $1}') + 16))
|
||||||
if [ "${off}" -le 16 ]; then
|
if [ "${off}" -le 16 ]; then
|
||||||
abort "${OCBin} is borked"
|
abort "${OCBin} is borked"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user