From 9248c9002c8ebfb39ef69334f194007731d19d8f Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Tue, 5 Jul 2022 18:56:08 +0800 Subject: [PATCH] Update some depends --- README.md | 2 +- resources/depends.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f1f1570..66d7734 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ ## Supported OS versions/distros - [**Ubuntu**](https://ubuntu.com/) 20.04 and newer, and Ubuntu-based distros like [Linux Mint](https://www.linuxmint.com/) - [**Arch Linux**](https://www.archlinux.org/) and Arch-based distros like [EndeavourOS](https://endeavouros.com/) -- [**Fedora**](https://getfedora.org/) 35 and newer +- [**Fedora**](https://getfedora.org/) 36 and newer - [**Debian**](https://www.debian.org/) 11 Bullseye and newer, Sid, and Debian-based distros - [**openSUSE**](https://www.opensuse.org/) Tumbleweed, Leap 15.4 - **macOS** 10.13 and newer diff --git a/resources/depends.sh b/resources/depends.sh index 3c90944..b2d6a05 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -156,12 +156,11 @@ InstallDepends() { elif [[ -n $UBUNTU_CODENAME && $VERSION_ID == "2"* ]] || (( DebianVer >= 11 )) || [[ $DebianVer == "sid" ]]; then - [[ -n $UBUNTU_CODENAME ]] && sudo add-apt-repository -y universe sudo apt update - sudo apt install -y bsdiff curl expect libimobiledevice6 openssh-client python2 udev unzip usbmuxd usbutils xmlstarlet xxd zenity + sudo apt install -y bsdiff curl expect libimobiledevice6 openssh-client python2 unzip usbmuxd usbutils xmlstarlet xxd zenity sudo systemctl enable --now udev systemd-udevd usbmuxd 2>/dev/null - elif [[ $ID == "fedora" ]] && (( VERSION_ID >= 35 )); then + elif [[ $ID == "fedora" ]] && (( VERSION_ID >= 36 )); then ln -sf /usr/lib64/libbz2.so.1.* ../resources/lib/libbz2.so.1.0 sudo dnf install -y bsdiff ca-certificates libimobiledevice openssl perl-Digest-SHA python2 systemd udev usbmuxd vim-common xmlstarlet zenity sudo ln -sf /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-certificates.crt