mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Initial Commit
This commit is contained in:
parent
5a8a6891ca
commit
2f63f00294
25
src/commands/system-setup/arch/paru-setup.sh
Normal file
25
src/commands/system-setup/arch/paru-setup.sh
Normal 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
|
25
src/commands/system-setup/arch/yay-setup.sh
Normal file
25
src/commands/system-setup/arch/yay-setup.sh
Normal 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
|
13
src/tabs.rs
13
src/tabs.rs
|
@ -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"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user