summarylogtreecommitdiffstats
path: root/github-desktop.install
blob: 8bdde527506953ca45927d3b4997f93a3c3917e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install()  {
    echo "LD_PRELOAD=libcurl.so.3 /opt/GithubDesktop/desktop "$@"" > /usr/bin/github-desktop
    chmod 755 /usr/bin/github-desktop
    echo "[Desktop Entry]" > /usr/share/applications/desktop.desktop
    echo "Name=GitHub Desktop" >> /usr/share/applications/desktop.desktop
    echo "Comment=Extend your GitHub workflow beyond your browser with GitHub Desktop" >> /usr/share/applications/desktop.desktop
    echo "Exec="/usr/bin/github-desktop" %U" >> /usr/share/applications/desktop.desktop
    echo "Terminal=false" >> /usr/share/applications/desktop.desktop
    echo "Type=Application" >> /usr/share/applications/desktop.desktop
    echo "Icon=github" >> /usr/share/applications/desktop.desktop
}

post_remove()   {
    rm -rf /opt/GithubDesktop
    rm -rf /usr/share/applications/desktop.desktop
    rm -rf /usr/share/doc/desktop
    rm -rf icons/hicolor/512x512/apps/desktop.png
    rm -rf icons/hicolor/256x256/apps/desktop.png
    rm -rf icons/hicolor/1024x1024/apps/desktop.png
    rm -rf /usr/bin/github-desktop
}