vastly sped up arch install via script to check for missing packages. Fixed yarn slowdown by pulling prebuilt binaries

main
KeeganForelight 2 years ago
parent 0c57bad84c
commit f30d7ceb41

@ -1,3 +1,5 @@
picom
polybar
feh feh
imagemagick imagemagick
rofi rofi

@ -8,6 +8,4 @@ typescript-language-server
lua-language-server lua-language-server
rust-analyzer rust-analyzer
# various tools # various tools
npm
yarn
xclip xclip

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Expects a file with pacakge names on newlines in $1
# Will skip lines beginning in a #
#
# Rationale:
# I hated how long it took to extract cached AUR packages just to tell me that
# it is up to date and skip installation.
# This helper loops over arguments and installs only packages not already on the system.
# Then the built in package manager can maintain these packages
packages=`cat "$1" | grep -v '#'`
for package in "$packages" ; do
echo "$package"
continue
needed=`yay -Qi "$package" 2>&1 >/dev/null`
[ -n "$needed" ] && yay --sudoloop --nodiffmenu --noeditmenu --nocleanmenu --noupgrademenu -S "$package"
done

@ -1,6 +1,6 @@
- shell: - shell:
- [arch/yay_installer, Installing yay] - [arch/yay_installer, Installing yay]
- - [bin/arch_package_installer.sh arch/base, installing base dependancies]
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/base.deps | grep -v '#'`" #command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/base.deps | grep -v '#'`"
description: "Installing base dependancies" #description: "Installing base dependancies"

@ -1,4 +1,4 @@
- shell: - shell:
- - [bin/arch_package_installer.sh arch/i3, Installing i3 dependancies]
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/i3.deps | grep -v '#'`" #command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/i3.deps | grep -v '#'`"
description: "Installing i3 dependancies" #description: "Installing i3 dependancies"

@ -1,7 +1,7 @@
- shell: - shell:
- - [bin/arch_package_installer.sh arch/nvim, Installing nvim dependancies]
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/nvim.deps | grep -v '#'`" # command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/nvim.deps | grep -v '#'`"
description: "Installing base dependancies" # description: "Installing base dependancies"
stderr: true # stderr: true
stdout: true # stdout: true

@ -1,5 +0,0 @@
- shell:
-
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S picom"
description: "Installing picom"

@ -1,5 +0,0 @@
- shell:
-
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S polybar"
description: "Installing polybar"

@ -3,4 +3,5 @@
~/.local/share/nvim/site: editors/neovim/site ~/.local/share/nvim/site: editors/neovim/site
- shell: - shell:
- [cd editors/neovim/site/pack/markdown/start/markdown-preview.nvim && yarn install && NODE_OPTIONS=--openssl-legacy-provider yarn build, building markdown preview] - [cd editors/neovim/site/pack/markdown/start/markdown-preview.nvim/app && ./install.sh, building markdown preview]
#- [cd editors/neovim/site/pack/markdown/start/markdown-preview.nvim && yarn install --checkfiles && NODE_OPTIONS=--openssl-legacy-provider yarn build, building markdown preview]

@ -1,7 +1,5 @@
arch.base arch.base
arch.i3 arch.i3
arch.picom
arch.polybar
arch.nvim arch.nvim
neovim neovim
zsh zsh

Loading…
Cancel
Save