Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PiGro Updated Install Method #2492

Merged
merged 7 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/updates/PiGro.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

webVer=$(get_release_raw actionschnitzel/PiGro-Aid-)
all_url="https://github.com/actionschnitzel/PiGro-Aid-/tree/$webVer"
all_url="https://github.com/actionschnitzel/PiGro-Aid-/releases/download/${webVer}/pigro-jci-${webVer}.deb"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
14 changes: 11 additions & 3 deletions apps/PiGro/description
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.
27 changes: 4 additions & 23 deletions apps/PiGro/install
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,8 @@

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
# remove legacy folders/files if present
rm -rf ~/PiGro-Aid-
rm -f ~/Desktop/pigro.desktop ~/.local/share/applications/pigro.desktop

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
4 changes: 2 additions & 2 deletions apps/PiGro/uninstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

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

# remove legacy folders/files if present
rm -rf ~/PiGro-Aid-
rm -f ~/Desktop/pigro.desktop ~/.local/share/applications/pigro.desktop