Skip to content

Instantly share code, notes, and snippets.

@flexiondotorg
Created September 4, 2017 12:10
Show Gist options
  • Save flexiondotorg/8b3d34463e629f81a335957babae60ac to your computer and use it in GitHub Desktop.
Save flexiondotorg/8b3d34463e629f81a335957babae60ac to your computer and use it in GitHub Desktop.
GitKraken snap
name: gitkraken
version: 2.7.1
summary: Unleash your repo
description: |
Insomnia is a cross-platform REST client, built on top of Electron.
confinement: devmode
parts:
gitkraken:
plugin: dump
source: https://release.gitkraken.com/linux/gitkraken-amd64.deb
source-type: deb
# Correct path to icon.
# Delete usr/bin/brackets, it is a broken symlink pointing outside the snap.
prepare: |
sed -i 's|Icon=app|Icon=/usr/share/pixmaps/app\.png|' usr/share/applications/gitkraken.desktop
rm -f usr/bin/gitkraken
after:
- desktop-gtk2
stage-packages:
- gconf2
- libasound2
- libcurl3
- libgnome-keyring0
- libnotify4
- libnspr4
- libnss3
- libpulse0
- libxss1
- libxtst6
apps:
gitkraken:
# Correct the TMPDIR path for Chromium Framework/Electron to
# ensure libappindicator has readable resources.
command: env TMPDIR=$XDG_RUNTIME_DIR PATH=/usr/local/bin:${PATH} ${SNAP}/bin/desktop-launch $SNAP/usr/share/gitkraken/gitkraken
desktop: usr/share/applications/gitkraken.desktop
plugs:
- browser-support
- gsettings
- home
- mount-observe
- network
- network-bind
- opengl
- password-manager-service
- pulseaudio
- unity7
- x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment