这是本文档旧的修订版!
sudo gedit /etc/hosts
在末尾添加127.0.0.1 release.gitkraken.com
版本参照dl: wiki:software:gitkraken:dl
GitHub地址: https://github.com/qsshs/GitKraKen-Crack
仓库https: https://github.com/qsshs/GitKraKen-Crack.git
git clone https://github.com/qsshs/GitKraKen-Crack.git
sudo apt install curl curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt update sudo apt install yarn
curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt install -y nodejs
如卸载nodejs后,后面update会出现命中:5 https://deb.nodesource.com/node_12.x focal InRelease
需要在/etc/apt/sources.list.d/
目录下的nodesource.list
和nodesource.list.save
文件中删除
进入GitKraKen-Crack文件夹,在此文件夹打开cmd
yarn install
yarn build
yarn gitcracken patcher
如果是root用户会发现GitKraken无法启动,需要修改快捷方式
参考目录:
/usr/share/applications/gitkraken.desktop
/usr/share/applications/gitkraken-url-handler.desktop
在Exec=
后,分别加上 --no-sandbox
Exec=/usr/share/gitkraken/gitkraken %U --no-sandbox Exec=/usr/bin/gitkraken --uri=%U --no-sandbox
GitHub地址: https://github.com/yk47g/gitkraken-chinese
json参考路径: /usr/share/gitkraken/resources/app.asar.unpacked/src/strings.json
然后将对应版本的json修改名称后,替换原本的即可