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