diff options
| author | 2024-01-12 18:34:25 +0500 | |
|---|---|---|
| committer | 2024-01-15 06:30:30 +0000 | |
| commit | 6b3e2bbd678b27d40c603e709a80b1760ffca139 (patch) | |
| tree | f94a3e7c627a45a83635a6fedb74bafa163be7f0 /library | |
| parent | d7ae6c112c7e330fbcf03f6ad581f992a932b8ba (diff) | |
update pkglist.txt
Diffstat (limited to 'library')
| -rwxr-xr-x | library/setupPkg/setupPkgPipx.sh | 15 | ||||
| -rwxr-xr-x | library/setupPkg/setupPkgYay.sh | 30 |
2 files changed, 45 insertions, 0 deletions
diff --git a/library/setupPkg/setupPkgPipx.sh b/library/setupPkg/setupPkgPipx.sh new file mode 100755 index 0000000..e9a38ee --- /dev/null +++ b/library/setupPkg/setupPkgPipx.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +setupPkgPipx () { + readarray -t pipxPkg < <(cat "$dirArchIsoFiles"/pkglists/pipxpkglist.txt) + + for pkg in ${pipxPkg[@]}; do + pipx install "$pkg" + done + + pipx ensurepath + + echo "✅ Готово" +} + +setupPkgPipx diff --git a/library/setupPkg/setupPkgYay.sh b/library/setupPkg/setupPkgYay.sh new file mode 100755 index 0000000..0bcc293 --- /dev/null +++ b/library/setupPkg/setupPkgYay.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +setupPkgYay () { + cd + git clone https://aur.archlinux.org/yay + + cd $HOME/yay + makepkg -isr + + cd + rm -rf $HOME/yay + + if [ "$1" = "pc" ]; then + yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglist.txt + elif [ "$1" = "notebook" ]; then + yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglistnote.txt + fi +} + +select platform in "pc" "notebook"; do + + if [ "$platform" = "" ]; then + echo "Invalid option" + break + else + setupPkgYay "$platform" + fi + + echo "✅ Готово" +done |
