From 7ae1715485f47796e5c3899ded4beb293133a35e Mon Sep 17 00:00:00 2001 From: Botspot Date: Tue, 30 Mar 2021 17:49:34 -0500 Subject: [PATCH] Add Github-CLI app --- apps/Github-CLI/credits | 1 + apps/Github-CLI/description | 4 ++++ apps/Github-CLI/icon-24.png | Bin 0 -> 663 bytes apps/Github-CLI/icon-64.png | Bin 0 -> 1422 bytes apps/Github-CLI/install-32 | 19 +++++++++++++++++++ apps/Github-CLI/install-64 | 19 +++++++++++++++++++ apps/Github-CLI/uninstall | 11 +++++++++++ apps/Github-CLI/website | 1 + 8 files changed, 55 insertions(+) create mode 100644 apps/Github-CLI/credits create mode 100644 apps/Github-CLI/description create mode 100644 apps/Github-CLI/icon-24.png create mode 100644 apps/Github-CLI/icon-64.png create mode 100755 apps/Github-CLI/install-32 create mode 100755 apps/Github-CLI/install-64 create mode 100755 apps/Github-CLI/uninstall create mode 100644 apps/Github-CLI/website diff --git a/apps/Github-CLI/credits b/apps/Github-CLI/credits new file mode 100644 index 0000000..b9ff3a9 --- /dev/null +++ b/apps/Github-CLI/credits @@ -0,0 +1 @@ +Added to pi-apps by Itai-Nelken diff --git a/apps/Github-CLI/description b/apps/Github-CLI/description new file mode 100644 index 0000000..6ac7ffd --- /dev/null +++ b/apps/Github-CLI/description @@ -0,0 +1,4 @@ +gh is GitHub on the command line. +It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code. + +to run (terminal only): gh diff --git a/apps/Github-CLI/icon-24.png b/apps/Github-CLI/icon-24.png new file mode 100644 index 0000000000000000000000000000000000000000..6c5e069510bfeac7856936abc7446fbc74457c35 GIT binary patch literal 663 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM0wlfaz7_*1mUKs7M+SzC{oH>NS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweBoc6VX;-`;;_Kaj^> z;_2(k{*+msg+s@pKNu*)IN#I7F~s8Z*-K}=LkdNXee4guykKvml%Juiq~t*d7uL5u z3&b2nSpG4xIzDjf;3`U%22*_AjoF=Qjaf6elONuwO^t0LuuGI|g-m@nW--WIYm_Y3 zZk(LPTK{GJE}a`|RXDgN3Z?XN)@ey^SUftDnm{r-UW|HfIB` literal 0 HcmV?d00001 diff --git a/apps/Github-CLI/icon-64.png b/apps/Github-CLI/icon-64.png new file mode 100644 index 0000000000000000000000000000000000000000..7e83bb91631818d335450fe03b3e9aa113260e85 GIT binary patch literal 1422 zcmV;91#$X`P)004R>004l5008;`004mK004C`008P>0026e000+ooVrmw00002 zVoOIv0RM-N%)bBt00(qQO+^Rg10MtkEI5x-zW@LPmPtfGRA}Dqm|sj=RUF4ZEtay{ z5(X=70S6nAs0~Uq7O8QVRTjq}k*J9}HJN)hlf-u(oJ)**fd`rK-;;_NX1XvG(mjxD z4~x?f?Itb~TCpO7Ef5N&CG`5><*xVi-rL*TX1?@yU+y{g_xpXn_ndQoe=d~de-@i1 zn{r%K-~cvBkRXM0Hwf6M;UQY_(MTkyS15ct zmq}ZKmyk$viFWJYHhP)048DEM(rf8M$HuEHAR)0%j1{)>g56@780$z#EbxjI3cWJC z#QW^W&v8b$WeR+eVUF@+qR6b$C@TZRYN%TI#GK_hi9Q-XSbLGS>_*;IL)!mF=*fK`=pgyw6xFUEFQ4|7B8ddXaOcwzj zW-_t^KqF3V0xscr#91r~f!hKBFD`8Y6~YNfW@N!aBuPp&c2l8Ez#(KSyO1TUis(ng z(S>p43Y#XSQe5(EhX2W?uv8uzib9}4c#)KVqYy|44V8noq7Y~kmV8w_TXzWD6ig4X zt6+F9hlH6$*0l*FnH5wYrKey5Jv<`J%<63cgauUxCuk}NzKIiAm0(z3J)qGAex)j_ z@{?+YH9AIv0=Wu)LMeC<#UaG>MAuxMyIn3B+`uI&$GF*;b&a4t^L5*utV8| zG|Mb2ZxG{M9xxdh?KE>z>50S*=rA_EmkYA$-*oX9ZxdDsMHr%+I)nDYK^@%;5z%ew zFXW1f@Dd3mBvO3DZlIY7RquC$Z+TYJ@)^!?gAIeuF~N(u7tq6~VsMUKfRAaR0o5+l zgRJG~n@7!MmxD?*pO%Z#7x*W`%}pNGv}ry*%O/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +cd $HOME + +#remove old deb (if exists) +rm -f gh_1.8.0_linux_armv6.deb +#download +wget https://github.com/cli/cli/releases/download/v1.8.0/gh_1.8.0_linux_armv6.deb || error 'Failed to download github-cli!' +#install +sudo apt -fy install ./gh_1.8.0_linux_armv6.deb || error "Failed to install gh!" +#clean up +rm -f gh_1.8.0_linux_armv6.deb diff --git a/apps/Github-CLI/install-64 b/apps/Github-CLI/install-64 new file mode 100755 index 0000000..cd90f0f --- /dev/null +++ b/apps/Github-CLI/install-64 @@ -0,0 +1,19 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +cd $HOME + +#remove old deb (if exists) +rm -f gh_1.8.0_linux_arm64.deb +#download +wget https://github.com/cli/cli/releases/download/v1.8.0/gh_1.8.0_linux_arm64.deb || error 'Failed to download github-cli!' +#install +sudo apt -fy install ./gh_1.8.0_linux_arm64.deb || error "Failed to install gh!" +#clean up +rm -f gh_1.8.0_linux_arm64.deb diff --git a/apps/Github-CLI/uninstall b/apps/Github-CLI/uninstall new file mode 100755 index 0000000..c04c809 --- /dev/null +++ b/apps/Github-CLI/uninstall @@ -0,0 +1,11 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +#uninstall +sudo apt -y purge gh || error "Failed to uninstall gh!" diff --git a/apps/Github-CLI/website b/apps/Github-CLI/website new file mode 100644 index 0000000..67519f2 --- /dev/null +++ b/apps/Github-CLI/website @@ -0,0 +1 @@ +https://cli.github.com/