goland破解办法

 

1,下载jetbrains-agent.jar 

(下载后,解压zip)

https://files.cnblogs.com/files/zccst/jetbrains-agent.jar.zip

 

2,复制jetbrains-agent.jar 到/Applications/GoLand.app/Contents/bin/

 

3,vim /Applications/GoLand.app/Contents/bin/goland.vmoptions

添加一行:

-javaagent:/Applications/GoLand.app/Contents/bin/jetbrains-agent.jar

 

4,运行下面脚本

将下面脚本内容复制到 reset_jetbrains_eval_mac_linux.sh 文件,并运行该脚本。

#!/bin/sh
# reset jetbrains ide evals

OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"

if [ $OS_NAME == "Darwin" ]; then
    echo 'macOS:'

    for PRD in $JB_PRODUCTS; do
        rm -rf ~/Library/Preferences/${PRD}*/eval
        rm -rf ~/Library/Application\ Support/JetBrains/${PRD}*/eval
    done
elif [ $OS_NAME == "Linux" ]; then
    echo 'Linux:'

    for PRD in $JB_PRODUCTS; do
        rm -rf ~/.${PRD}*/config/eval
        rm -rf ~/.config/${PRD}*/eval
    done
else
    echo 'unsupport'
    exit
fi

echo 'done.'

 

 

5,打开goland,

点 Enter License,里面有现在评估,然后就可以了

 

 

写在最后,过一段时间后,发现又不能使用了。解决需要两步。

1,把zip包拖到代码区域

 下载地址:https://files.cnblogs.com/files/zccst/ide-eval-resetter-2.1.13.zip

拖到代码区域后,会更新插件,让你重启编辑器。点击重启,并出现下面区域。

 勾选:Auto reset before per restart

并点击reset按钮。

 只允许一次就可以了。

2,再次运行reset脚本(可选,运行一次即可)

 

posted @ 2021-05-24 15:32  走走停停走走  Views(14724)  Comments(5Edit  收藏  举报