Merge pull request #166 from ChrisTitusTech/Add-AUR-Helpers

Add AUR Helpers
This commit is contained in:
Chris Titus 2024-08-15 16:34:17 -05:00 committed by GitHub
commit ad87fad7ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/bin/sh -e
. "$(dirname "$0")/../../common-script.sh"
installDepend() {
case $PACKAGER in
pacman)
if ! command_exists paru; then
echo "Installing paru as AUR helper..."
sudo "$PACKAGER" --noconfirm -S base-devel
cd /opt && sudo git clone https://aur.archlinux.org/paru.git && sudo chown -R "$USER": ./paru
cd paru && makepkg --noconfirm -si
echo "Paru installed"
else
echo "Paru already installed"
fi
;;
*)
echo "Unsupported package manager: $PACKAGER"
;;
esac
}
checkEnv
installDepend

View File

@ -0,0 +1,25 @@
#!/bin/sh -e
. "$(dirname "$0")/../../common-script.sh"
installDepend() {
case $PACKAGER in
pacman)
if ! command_exists yay; then
echo "Installing yay as AUR helper..."
sudo "$PACKAGER" --noconfirm -S base-devel
cd /opt && sudo git clone https://aur.archlinux.org/yay-git.git && sudo chown -R "$USER": ./yay-git
cd yay-git && makepkg --noconfirm -si
echo "Yay installed"
else
echo "Aur helper already installed"
fi
;;
*)
echo "Unsupported package manager: $PACKAGER"
;;
esac
}
checkEnv
installDepend

View File

@ -23,6 +23,19 @@ pub static TABS: LazyLock<Vec<Tab>> = LazyLock::new(|| {
name: "root", name: "root",
command: Command::None, command: Command::None,
} => { } => {
ListNode {
name: "Arch Linux",
command: Command::None,
} => {
ListNode {
name: "Yay AUR Helper",
command: Command::LocalFile("system-setup/arch/yay-setup.sh"),
},
ListNode {
name: "Paru AUR Helper",
command: Command::LocalFile("system-setup/arch/paru-setup.sh"),
}
},
ListNode { ListNode {
name: "Full System Update", name: "Full System Update",
command: Command::LocalFile("system-update.sh"), command: Command::LocalFile("system-update.sh"),