一、原理
Beyond Compare每次启动后会先检查注册信息,试用期到期后就不能继续使用。解决方法是在启动前,先删除注册信息,然后再启动,这样就可以永久免费试用了。
二、下载Beyond Compare并安装。

三、进入Mac应用程序目录下,找到刚刚安装好的Beyond Compare,路径如下/Applications/Beyond Compare.app/Contents/MacOS。

右键点击‘显示包内容’:


四、修改启动程序文件BCompare为BCompare.real。
mv BCompare BCompare.real

五、在当前目录下新建一个文件BCompare。
vim BCompare
文件内容如下:
#!/bin/bash
# 删除注册信息
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
# 启动真实的Bcompare文件
"`dirname "$0"`"/BCompare.real $@
六、修改文件的权限:
chmod a+x /Applications/Beyond\ Compare.app/Contents/MacOS/BCompare
以上步骤完成后,打开Beyond Compare就可以正常永久使用了。

参考:https://blog.csdn.net/double_happiness/article/details/88551249
网友评论