From f4281e6aca62e6a6a27e3fdc40dde95ddb3acd04 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 12 Jul 2026 19:12:33 +0545 Subject: [PATCH] fix(install): compile global menu shim from src/globalmenu/ instead of non-existent native/ --- install.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index d565f95..005e0d7 100755 --- a/install.sh +++ b/install.sh @@ -296,17 +296,19 @@ else success "All packages are up-to-date" fi -progress "Building Global Menu C library" +progress "Building Global Menu shim" -step "Compiling libglobalmenu.so..." -if [ -f "$INSTALL_DIR/native/Makefile" ]; then - if make -C "$INSTALL_DIR/native" clean >/dev/null 2>&1 && make -C "$INSTALL_DIR/native" >/dev/null 2>&1; then - success "libglobalmenu.so built successfully" +step "Compiling libmenu_button_shim.so..." +SHIM_SRC="$INSTALL_DIR/src/globalmenu/libmenu_button_shim.c" +SHIM_OUT="$INSTALL_DIR/src/globalmenu/libmenu_button_shim.so" +if [ -f "$SHIM_SRC" ]; then + if gcc -shared -fPIC -O2 -o "$SHIM_OUT" "$SHIM_SRC" $(pkg-config --cflags --libs gtk+-3.0) -ldl 2>/dev/null; then + success "libmenu_button_shim.so built successfully" else - warn "Failed to build libglobalmenu.so - global menu may not work" + warn "Failed to compile libmenu_button_shim.so - global menu may not work" fi else - warn "native/Makefile not found - skipping C library build" + warn "libmenu_button_shim.c not found - skipping shim build" fi progress "Building App Capture module"