This commit is contained in:
pika 2025-05-19 16:53:53 +02:00
parent 0b39ad6d94
commit 90ba8e7ff7

10
swww.sh
View file

@ -35,7 +35,7 @@
}
checkBuildDependencies() {
echo_info "Installing build dependencies.."
echo_pkg deps "Installing build dependencies.."
local deps=(git xdg-output liblz4-dev wayland-protocols)
# echo "DEBUG: Installing ${deps[@]}"
checkAndInstall "${deps[@]}"
@ -49,14 +49,14 @@
cloneAndBuildSwww() {
local cloneDir="$(mktemp -d)"
echo_info "cloning swww into $cloneDir/swww"
echo_pkg clone "cloning swww into $cloneDir/swww"
run git clone --depth=1 https://github.com/LGFae/swww.git $cloneDir/swww
cd $cloneDir/swww || echo_error "error.."
echo_info "Building swww from source.."
echo_pkg build "Building swww from source.."
if run cargo build --release; then
echo_info "Installing swww and swww-daemon to /bin"
echo_pkg install "Installing swww and swww-daemon to /bin"
$_sudo cp target/release/swww{,-daemon} /bin/
else
echo_error "Could not build with cargo build --release.."
@ -70,7 +70,7 @@
case "$distro" in
arch)
echo_info "Arch detected.. installing directly"
echo_pkg arch "Arch detected.. installing directly"
run _install swww
;;
debian | ubuntu)