代码拉取完成,页面将自动刷新
同步操作将从 kunge/unlocker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env bash
set -e
printf "\nEFI Unlocker 1.0.2 for VMware Fusion\n"
printf "======================================\n"
printf "(c) Dave Parsons 2018-21\n\n"
# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
version=$(defaults read /Applications/VMware\ Fusion.app/Contents/Info.plist CFBundleShortVersionString)
build=$(defaults read /Applications/VMware\ Fusion.app/Contents/Info.plist CFBundleVersion)
IFS='.' read -r -a product <<< "$version"
printf "VMware product version: %s.%s\n\n" "$version" "$build"
#printf "Major: ${product[0]}\n"
#printf "Minor: ${product[1]}\n"
#printf "Revision: ${product[2]}\n"
#printf "Build: ${build}\n"
# Check version is 8+
if [[ ${product[0]} -lt 8 ]]; then
printf "VMware Fusion version 8 or greater required!\n"
exit 1
fi
if [[ ${product[0]} -eq 8 ]]; then
printf "Extracting firmware...\n"
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx -e EFI32 > EFI32.ROM
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx -e EFI64 > EFI64.ROM
else
printf "Copying firmware...\n"
cp -v /Applications/VMware\ Fusion.app/Contents/Library/roms/EFI32.ROM .
cp -v /Applications/VMware\ Fusion.app/Contents/Library/roms//EFI64.ROM .
fi
printf "Patching 32-bit ROM...\n"
./uefipatch/UEFIPatch.macos EFI32.ROM ./uefipatch/efi-patches.txt -o EFI32-MACOS.ROM
rm -fv EFI32.ROM
printf "\nPatching 64-bit ROM...\n"
./uefipatch/UEFIPatch.macos EFI64.ROM ./uefipatch/efi-patches.txt -o EFI64-MACOS.ROM
rm -fv EFI64.ROM
printf "\nFinished!\n"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。