add pi-apps terminal plugin app

pull/414/head
Botspot 3 years ago
parent 4521a6842e
commit c16f703c05

@ -0,0 +1 @@
App made by and added to pi-apps by RPICoder

@ -0,0 +1,17 @@
This is a terminal version of pi apps but with more features.
Usage
pi-apps [argument]
Available Arguments:
"list-all" Prints the list of available apps that are installable
"list-installed" Prints all installed apps
"list-uninstalled" Prints all uninstalled apps
"install [appname]" Install any app available in pi-apps
"uninstall [appname]" Uninstall any app available in pi-apps
"search [appname]" Search for a app in pi apps
"website [appname]" Prints website for app
"update" Update pi-apps
"gui" Launches gui for pi-apps
Run "pi-apps help" to get this information

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -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
}
#Installing dependencies for search argument
pip3 install python-Levenshtein fuzzywuzzy || error "pip3 failed to python-Levenshtein and fuzzywuzzy"
#Downloading papm file
wget https://raw.githubusercontent.com/techcoder20/PiAppsTerminalAdvanced/main/PiAppsTerminalAdvanced.py -O "${DIRECTORY}/PiAppsTerminalAdvanced.py" || error "Failed to download PiAppsTerminalAdvanced.py"
echo "#!/bin/bash
#${DIRECTORY}/gui
python3 ${DIRECTORY}/PiAppsTerminalAdvanced.py "'$@' | sudo tee /usr/local/bin/pi-apps >/dev/null
sudo chmod +x /usr/local/bin/pi-apps

@ -0,0 +1,17 @@
#!/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
}
#Removing PiAppsTerminalAdvanced.py
rm "${DIRECTORY}/PiAppsTerminalAdvanced.py"
#Restoring old binary file
echo "#!/bin/bash
${DIRECTORY}/gui" | sudo tee /usr/local/bin/pi-apps >/dev/null
sudo chmod +x /usr/local/bin/pi-apps

@ -0,0 +1 @@
https://github.com/techcoder20/PiAppsTerminalAdvanced

@ -37,6 +37,7 @@ Minecraft Pi (Modded)|Games
Mission Planner|Tools
Node.js|Internet
OBS Studio|Tools
Pi-Apps Terminal Plugin|Tools
PiGro|Tools
piKiss|Tools
Pi Power Tools|Tools

Loading…
Cancel
Save