Skip to content

Commit

Permalink
Updated PiGro App Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
actionschnitzel committed Nov 29, 2023
1 parent ff6dd0a commit 4cf52e8
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 29 deletions.
14 changes: 11 additions & 3 deletions apps/PiGro/description
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
PiGro is a program designed to make all Debian-based distributions easier to use on the Pi.
The most common terminal commands can be executed with one click.
A system configuration tool inspired by openSUSE's YaST but with the user-friendliness of Linux Mint. PiGro equips Raspberry Pi OS with graphical interfaces for tasks that would otherwise require the terminal. It is also optimized for Ubuntu, Ubuntu Mate, and MX Linux.

Features:
- System Monitor
- Easy access to system areas with elevated privileges
- Powerful update tools
- Desktop Environment (DE) Theme Changer
- Autostart Tool
- Software Center for APT, Pi Apps & Flatpak
- Tuning & Overclocking section

To run: Menu -> System Tools -> PiGro
To run in a terminal: cd ~/PiGro-Aid- ; ~/PiGro-Aid-/start.sh
To run in a terminal: pigro-jci
Binary file modified apps/PiGro/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/PiGro/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 14 additions & 21 deletions apps/PiGro/install
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,20 @@

version=23.04

# Get dependencies
install_packages xterm python3-pil python3-pil.imagetk python3-pip python3-psutil python3-distro python3-bs4 python3-dev python3-requests mpg123 lolcat || exit 1
# Check if ~/PiGro-Aid- exists. | 23.04 or earlier. New Dir is /opt/
if [ -d ~/PiGro-Aid- ]; then
# Purge packages and exit with code 1 if unsuccessful
purge_packages || exit 1

# Remove directory ~/PiGro-Aid-
rm -rf ~/PiGro-Aid-

# Remove desktop file from Desktop and ~/.local/share/applications/
rm -f ~/Desktop/pigro.desktop ~/.local/share/applications/pigro.desktop
else
echo "Directory ~/PiGro-Aid- not found. No action taken."
fi

rm -rf ~/PiGro-Aid- || error "Failed to first remove ~/PiGro-Aid- folder!"
git_clone https://github.com/actionschnitzel/PiGro-Aid- -b $version --depth=1 || error "Failed to clone repository!"

cd PiGro-Aid- || error "Failed to enter directory!"
chmod +x start.sh

mkdir -p $HOME/Desktop $HOME/.local/share/applications
echo "[Desktop Entry]
Version=2.1
Exec=$HOME/PiGro-Aid-/start.sh
Name=PiGro
GenericName=PiGro
Encoding=UTF-8
Terminal=false
Type=Application
Categories=System
Icon=$HOME/PiGro-Aid-/images/icons/logo.png
Path=$HOME/PiGro-Aid-/" > ~/Desktop/pigro.desktop

chmod +x ~/Desktop/pigro.desktop
cp ~/Desktop/pigro.desktop ~/.local/share/applications/pigro.desktop
install_packages https://github.com/actionschnitzel/PiGro-Aid-/releases/download/${version}/pigro-jci-${version}.deb || exit 1
21 changes: 16 additions & 5 deletions apps/PiGro/uninstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/bin/bash

purge_packages || exit 1
rm -rf ~/PiGro-Aid-

rm -f ~/Desktop/pigro.desktop ~/.local/share/applications/pigro.desktop

# Check if ~/PiGro-Aid- exists (Github install method). New dir is /opt/ (.deb)
if [ -d ~/PiGro-Aid- ]; then
# Purge packages and exit with code 1 if unsuccessful
purge_packages || exit 1

# Remove directory ~/PiGro-Aid-
rm -rf ~/PiGro-Aid-

# Remove desktop file from Desktop and ~/.local/share/applications/
rm -f ~/Desktop/pigro.desktop ~/.local/share/applications/pigro.desktop
elif [ -d /opt/PiGro-Aid- ]; then
# Purge packages and exit with code 1 if unsuccessful
purge_packages || exit 1
else
echo "Directory ~/PiGro-Aid- or /opt/PiGro-Aid- not found. No action taken."
fi
Empty file modified apps/PiGro/website
100644 → 100755
Empty file.

0 comments on commit 4cf52e8

Please sign in to comment.