mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-13 05:09:01 +08:00
build on systems with libwebkit2gtk-4.1 (#5135)
Linux distros started removing libwebkit2gtk-4.0 libriry from their repos. Ubuntu Noble (24.04) is one of them. Modify debian/ubuntu deps to install libwebkit2gtk-4.1 if no libwebkit2gtk-4.0 available
This commit is contained in:
parent
31df3f01ea
commit
aa22b7f220
@ -20,7 +20,6 @@ REQUIRED_DEV_PACKAGES=(
|
|||||||
libssl-dev
|
libssl-dev
|
||||||
libtool
|
libtool
|
||||||
libudev-dev
|
libudev-dev
|
||||||
libwebkit2gtk-4.0-dev
|
|
||||||
ninja-build
|
ninja-build
|
||||||
texinfo
|
texinfo
|
||||||
wget
|
wget
|
||||||
@ -38,6 +37,16 @@ then
|
|||||||
then
|
then
|
||||||
REQUIRED_DEV_PACKAGES+=(libssl-dev libcurl4-openssl-dev)
|
REQUIRED_DEV_PACKAGES+=(libssl-dev libcurl4-openssl-dev)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check which version of libwebkit2gtk is available
|
||||||
|
apt show --quiet libwebkit2gtk-4.0-dev >/dev/null 2>&1
|
||||||
|
if [ "$?" == "0" ]
|
||||||
|
then
|
||||||
|
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.0-dev)
|
||||||
|
else
|
||||||
|
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.1-dev)
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO: optimize this by checking which, if any, packages are already installed
|
# TODO: optimize this by checking which, if any, packages are already installed
|
||||||
|
|
||||||
# install them all at once
|
# install them all at once
|
||||||
|
Loading…
x
Reference in New Issue
Block a user