update webkit2gtk package name for fedora >= 37

This commit is contained in:
brxken128 2023-03-11 16:45:47 +00:00
parent 3b857033d6
commit cc9b2d7053
No known key found for this signature in database
GPG key ID: 8B8D1AA6AE10A8FF

View file

@ -114,12 +114,21 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "Detected dnf!"
echo "Installing dependencies with dnf..."
FEDORA_TAURI_DEPS="webkit2gtk3-devel.x86_64 openssl-devel curl wget libappindicator-gtk3 librsvg2-devel" # Tauri dependencies
# `webkit2gtk4.0-devel` also provides `webkit2gtk3-devel`, it is just under a different package in fedora versions >= 37.
# https://koji.fedoraproject.org/koji/packageinfo?tagOrder=-blocked&packageID=26162#taglist
# https://packages.fedoraproject.org/pkgs/webkitgtk/webkit2gtk4.0-devel/fedora-38.html#provides
FEDORA_37_TAURI_WEBKIT="webkit2gtk4.0-devel.x86_64"
FEDORA_36_TAURI_WEBKIT="webkit2gtk3-devel.x86_64"
FEDORA_TAURI_DEPS="openssl-devel curl wget libappindicator-gtk3 librsvg2-devel" # Tauri dependencies
FEDORA_FFMPEG_DEPS="ffmpeg ffmpeg-devel" # FFmpeg dependencies
FEDORA_BINDGEN_DEPS="clang" # Bindgen dependencies - it's used by a dependency of Spacedrive
PROTOBUF="protobuf-compiler" # Protobuf compiler
sudo dnf check-update
sudo dnf install $FEDORA_37_TAURI_WEBKIT || sudo dnf install $FEDORA_36_TAURI_WEBKIT || log_err "We were unable to install the `webkit2gtk3-devel" package. Please open an issue if you feel that this is incorrect. https://github.com/spacedriveapp/spacedrive/issues" && exit 1
sudo dnf install $FEDORA_TAURI_DEPS $FEDORA_FFMPEG_DEPS $FEDORA_BINDGEN_DEPS $PROTOBUF
sudo dnf group install "C Development Tools and Libraries"
else