vastly sped up arch install via script to check for missing packages. Fixed yarn slowdown by pulling prebuilt binaries
This commit is contained in:
parent
0c57bad84c
commit
f30d7ceb41
@ -1,3 +1,5 @@
|
||||
picom
|
||||
polybar
|
||||
feh
|
||||
imagemagick
|
||||
rofi
|
@ -8,6 +8,4 @@ typescript-language-server
|
||||
lua-language-server
|
||||
rust-analyzer
|
||||
# various tools
|
||||
npm
|
||||
yarn
|
||||
xclip
|
19
bin/arch_package_installer.sh
Executable file
19
bin/arch_package_installer.sh
Executable file
@ -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:
|
||||
- [arch/yay_installer, Installing yay]
|
||||
-
|
||||
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/base.deps | grep -v '#'`"
|
||||
description: "Installing base dependancies"
|
||||
- [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 '#'`"
|
||||
#description: "Installing base dependancies"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
- shell:
|
||||
-
|
||||
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/i3.deps | grep -v '#'`"
|
||||
description: "Installing i3 dependancies"
|
||||
- [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 '#'`"
|
||||
#description: "Installing i3 dependancies"
|
||||
|
@ -1,7 +1,7 @@
|
||||
- shell:
|
||||
-
|
||||
command: "yay --sudoloop --nodiffmenu --noeditmenu --noupgrademenu --nocleanmenu --noredownload --norebuild --useask --needed -S `cat arch/nvim.deps | grep -v '#'`"
|
||||
description: "Installing base dependancies"
|
||||
stderr: true
|
||||
stdout: true
|
||||
- [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 '#'`"
|
||||
# description: "Installing base dependancies"
|
||||
# stderr: 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
|
||||
|
||||
- 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.i3
|
||||
arch.picom
|
||||
arch.polybar
|
||||
arch.nvim
|
||||
neovim
|
||||
zsh
|
||||
|
Loading…
x
Reference in New Issue
Block a user