打开终端 Terminal, 进入 Beyond Compare 安装路径
cd /Applications/Beyond Compare.app/Contents/MacOS
更改原程序文件名
mv BCompare BCompare.real
添加启动脚本,文件名为BCompare
vim BCompare
脚本文件添加以下内容:
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.real $@
修正文件权限
chmod +x BCompare