This commit is contained in:
CanbiZ (MickLesk)
2026-02-16 17:33:25 +01:00
parent a3218c2d98
commit fdbd2d145a
2 changed files with 22 additions and 3 deletions

View File

@@ -55,8 +55,22 @@ function update_script() {
systemctl stop gramps-web systemctl stop gramps-web
msg_ok "Stopped Service" msg_ok "Stopped Service"
if apt-cache show libgirepository1.0-dev >/dev/null 2>&1; then
GI_DEV_PACKAGE="libgirepository1.0-dev"
elif apt-cache show libgirepository-2.0-dev >/dev/null 2>&1; then
GI_DEV_PACKAGE="libgirepository-2.0-dev"
else
msg_error "No supported girepository development package found!"
exit
fi
msg_info "Ensuring Build Dependencies" msg_info "Ensuring Build Dependencies"
$STD apt install -y libcairo2-dev pkg-config $STD apt install -y \
gobject-introspection \
libcairo2-dev \
libglib2.0-dev \
pkg-config \
"$GI_DEV_PACKAGE"
msg_ok "Ensured Build Dependencies" msg_ok "Ensured Build Dependencies"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gramps-web-api" "gramps-project/gramps-web-api" "tarball" "latest" "/opt/gramps-web-api" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gramps-web-api" "gramps-project/gramps-web-api" "tarball" "latest" "/opt/gramps-web-api"

View File

@@ -13,10 +13,13 @@ setting_up_container
network_check network_check
update_os update_os
if apt-cache show libgirepository-2.0-dev >/dev/null 2>&1; then if apt-cache show libgirepository1.0-dev >/dev/null 2>&1; then
GI_DEV_PACKAGE="libgirepository1.0-dev"
elif apt-cache show libgirepository-2.0-dev >/dev/null 2>&1; then
GI_DEV_PACKAGE="libgirepository-2.0-dev" GI_DEV_PACKAGE="libgirepository-2.0-dev"
else else
GI_DEV_PACKAGE="libgirepository1.0-dev" msg_error "No supported girepository development package found!"
exit
fi fi
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
@@ -25,6 +28,7 @@ $STD apt install -y \
build-essential \ build-essential \
ffmpeg \ ffmpeg \
gettext \ gettext \
gobject-introspection \
gir1.2-gexiv2-0.10 \ gir1.2-gexiv2-0.10 \
gir1.2-gtk-3.0 \ gir1.2-gtk-3.0 \
gir1.2-osmgpsmap-1.0 \ gir1.2-osmgpsmap-1.0 \
@@ -32,6 +36,7 @@ $STD apt install -y \
git \ git \
graphviz \ graphviz \
libcairo2-dev \ libcairo2-dev \
libglib2.0-dev \
libicu-dev \ libicu-dev \
libopencv-dev \ libopencv-dev \
pkg-config \ pkg-config \