参考资料:
关键:
步骤
解压材料3,得到node-v12.22.12-linux-x64/
sudo mv node-v12.22.12-linux-x64 /usr/local/
echo export PATH=$PATH:/usr/local/node-v12.22.12-linux-x64/bin >> ~/.bashrc
source .bashrc
安装yarn
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
解压材料1得到/home/xxx/…/gitkraken/
解压材料2得到GitCracken
cd GitCracken
yarn install
yarn build
node dist/bin/gitcracken.js patcher --asar /home/xxx/.../gitkraken/resources/app.asar
如果不报错就安装成功了
如果有报错,那就是尝试其它的GitCracken版本和gitkraken,并返回到第3步
sudo mv /home/xxx/.../gitkraken/ /opt/
创建快捷方式
gedit gitkraken.desktop
[Desktop Entry]
Name=GitKraken
Comment=Unleash your repo
GenericName=Git Client
Exec=/opt/gitkraken/gitkraken %U
Icon=gitkraken
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;RevisionControl;
MimeType=text/plain;
StartupWMClass=gitkraken
mv gitkraken.desktop /usr/share/applications
初步验证可用。