This commit is contained in:
pika 2025-05-11 17:40:54 +02:00
parent 2bc5777b03
commit ccc2f43d95

View file

@ -36,9 +36,8 @@
checkBuildDependencies() {
echo_info "Installing build dependencies.."
for i in git xdg-output liblz4-dev wayland-protocols; do
run _install "$i"
done
local deps=(git xdg-output liblz4-dev wayland-protocols)
checkAndInstall "$deps"
if ! command_exists cargo; then
curl --proto '=https' --tlsv1.2 -sSf "https://sh.rustup.rs" | sh
@ -57,7 +56,7 @@
echo_info "Building swww from source.."
if run cargo build --release; then
echo_info "Installing swww and swww-daemon to /bin"
run $_sudo cp target/release/swww{,-daemon} /bin/
$_sudo cp target/release/swww{,-daemon} /bin/
else
echo_error "Could not build with cargo build --release.."
fi