本地安装 yarn && node

brew install node
brew install yarn

修改 host,需要权限

sudo open. /etc/hosts

在文件内添加

127.0.0.1 release.gitkraken.com

随后下载并安装GitkraKen 7.4版本,版本经测试,7.7及8.x系列均失败,其余未测试。
如需急用,切记一定是7.4版本。
安装成功后,新建一测试目录,克隆代码:

git clone git@github.com:shawalarik/GitCracken.git
cd GitCracken/GitCracken
rm yarn.lock
yarn install
yarn build

随后进行破解

node dist/bin/gitcracken.js patcher --asar gitkraken的安装目录/resources/app.asar

例如:

node dist/bin/gitcracken.js patcher --asar /Applications/GitKraken.app/Contents/Resources/app.asar

控制台应该展示:


 ██████╗ ██╗████████╗ ██████╗██████╗  █████╗  ██████╗██╗  ██╗███████╗███╗   ██╗
██╔════╝ ██║╚══██╔══╝██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██╔╝██╔════╝████╗  ██║
██║  ███╗██║   ██║   ██║     ██████╔╝███████║██║     █████╔╝ █████╗  ██╔██╗ ██║
██║   ██║██║   ██║   ██║     ██╔══██╗██╔══██║██║     ██╔═██╗ ██╔══╝  ██║╚██╗██║
╚██████╔╝██║   ██║   ╚██████╗██║  ██║██║  ██║╚██████╗██║  ██╗███████╗██║ ╚████║
 ╚═════╝ ╚═╝   ╚═╝    ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝
                                                                               
• Description: GitKraken utils for non-commercial use
• Version: 0.6.2
• Author: KillWolfVlad
• License: MIT
• Home Page: https://pastebin.com/u/KillWolfVlad

==> 📦 Backup /Applications/GitKraken.app/Contents/Resources/app.asar ➔ /Applications/GitKraken.app/Contents/Resources/app.asar.1637032397438.backup
==> 🔓 Unpack /Applications/GitKraken.app/Contents/Resources/app.asar ➔ /Applications/GitKraken.app/Contents/Resources/app
==> 🔨 Patch /Applications/GitKraken.app/Contents/Resources/app with pro features
==> 🔒 Pack /Applications/GitKraken.app/Contents/Resources/app ➔ /Applications/GitKraken.app/Contents/Resources/app.asar
==> 🔥 Remove /Applications/GitKraken.app/Contents/Resources/app
==> 👌 Patching done!

运行成功!

重新打开GitKraKen软件,查看右下角,展示PRO即破解成功,可打开私有库等操作。

Q.E.D.


I thrive to be a creator of things.