hammering away
parent
586faed768
commit
dd97b072b3
|
|
@ -179,12 +179,11 @@ install_deps_linux() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Verify critical pkg-config dependencies
|
# Verify critical header files instead of pkg-config
|
||||||
for pkg in gtk4 libadwaita-1 gtk-layer-shell-1.0; do
|
[[ -f /usr/include/gtk-4.0/gtk/gtk.h ]] || error "GTK4 headers not found. Install libgtk-4-dev."
|
||||||
if ! pkg-config --exists "$pkg"; then
|
[[ -f /usr/include/adwaita-1.0/adwaita.h ]] || error "libadwaita headers not found. Install libadwaita-1-dev."
|
||||||
error "Missing required development package: $pkg. Did apt-get install succeed?"
|
[[ -f /usr/include/gtk-layer-shell-1.0/gtk-layer-shell.h ]] || error "GTK Layer Shell headers not found. Install libgtk4-layer-shell-dev."
|
||||||
fi
|
[[ -f /usr/include/harfbuzz/harfbuzz.h ]] || error "Harfbuzz headers not found. Install libharfbuzz-dev."
|
||||||
done
|
|
||||||
|
|
||||||
elif command_exists pacman; then
|
elif command_exists pacman; then
|
||||||
sudo pacman -Sy --noconfirm \
|
sudo pacman -Sy --noconfirm \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue