fix
This commit is contained in:
parent
d319edc659
commit
d84412b9b6
1 changed files with 9 additions and 4 deletions
|
|
@ -10,23 +10,32 @@ REQUIRED_DEV_PACKAGES=(
|
|||
g++
|
||||
gettext
|
||||
git
|
||||
libbz2-dev
|
||||
libcurl4-openssl-dev
|
||||
libdbus-1-dev
|
||||
libfuse2
|
||||
libgl1-mesa-dev
|
||||
libglew-dev
|
||||
libgstreamerd-3-dev
|
||||
libgtk-3-dev
|
||||
libmspack-dev
|
||||
libosmesa6-dev
|
||||
libsecret-1-dev
|
||||
libspnav-dev
|
||||
libssl-dev
|
||||
libtool
|
||||
libudev-dev
|
||||
libunwind-dev
|
||||
libx264-dev
|
||||
libxkbcommon-dev
|
||||
nasm
|
||||
nlohmann-json3-dev
|
||||
clang
|
||||
lld
|
||||
ninja-build
|
||||
texinfo
|
||||
wget
|
||||
yasm
|
||||
)
|
||||
|
||||
if [[ -n "$UPDATE_LIB" ]]
|
||||
|
|
@ -34,10 +43,8 @@ then
|
|||
# shellcheck source=/dev/null
|
||||
source /etc/os-release
|
||||
if [ "${ID}" == "ubuntu" ] && [ -n "${VERSION_ID}" ]; then
|
||||
# It's ubuntu and we have a VERSION_ID like "24.04".
|
||||
if dpkg --compare-versions "${VERSION_ID}" ge 22 && dpkg --compare-versions "${VERSION_ID}" lt 24 ;
|
||||
then
|
||||
# Some extra packages needed on Ubuntu 22.x and 23.x:
|
||||
REQUIRED_DEV_PACKAGES+=(curl libfuse-dev m4)
|
||||
fi
|
||||
fi
|
||||
|
|
@ -47,7 +54,6 @@ then
|
|||
REQUIRED_DEV_PACKAGES+=(libssl-dev libcurl4-openssl-dev)
|
||||
fi
|
||||
|
||||
# check which version of libwebkit2gtk is available
|
||||
if [ "$(apt show --quiet libwebkit2gtk-4.0-dev 2>/dev/null)" != "" ]
|
||||
then
|
||||
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.0-dev)
|
||||
|
|
@ -55,7 +61,6 @@ then
|
|||
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.1-dev)
|
||||
fi
|
||||
|
||||
# install them all at once
|
||||
sudo apt update
|
||||
sudo apt install -y "${REQUIRED_DEV_PACKAGES[@]}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue