- 首先下载Beyond Compare最新版本,链接如下:https://www.scootersoftware.com/download.php
-
进入Mac应用程序目录下,找到刚刚安装好的Beyond Compare,路径如下/Applications/Beyond Compare.app/Contents/MacOS
- 修改原有启动程序文件名 BCompare为BCompare.real
- 在当前目录下新建一个文件BCompare,文件内容如下:
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.real $@
- 修改文件的权限
chmod a+x /Applications/Beyond\ Compare.app/Contents/MacOS/BCompare