From a4166d51f43dcf2f99196b586ecb1133541a15cb Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Mon, 26 Jul 2021 17:23:57 +0800 Subject: [PATCH] Support Debian 11 Bullseye --- README.md | 2 +- resources/depends.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cdbae59..2a6fd2b 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ - [**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/) 33 and newer -- [**Debian**](https://www.debian.org/) Testing and Unstable +- [**Debian**](https://www.debian.org/) 11 Bullseye, Testing and Unstable - [**openSUSE**](https://www.opensuse.org/) Tumbleweed and Leap 15.3 - **macOS** 10.13 and newer diff --git a/resources/depends.sh b/resources/depends.sh index a3880d0..82b5b56 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -108,16 +108,16 @@ InstallDepends() { ln -sf /usr/lib/libzip.so.5 ../resources/lib/libzip.so.4 elif [[ ! -z $UBUNTU_CODENAME && $VERSION_ID == "2"* ]] || - [[ $PRETTY_NAME == "Debian GNU/Linux bullseye/sid" ]]; then + [[ $VERSION == "11 (bullseye)" || $PRETTY_NAME == "Debian"*"sid" ]]; then [[ ! -z $UBUNTU_CODENAME ]] && sudo add-apt-repository -y universe sudo apt update - sudo apt install -y bsdiff curl git libimobiledevice6 openssh-client python2 usbmuxd usbutils + sudo apt install -y bsdiff curl git libimobiledevice6 openssh-client python2 unzip usbmuxd usbutils SavePkg cp libcrypto.so.1.0.0 libcurl.so.3 libpng12.so.0 libssl.so.1.0.0 ../resources/lib - if [[ $PRETTY_NAME == "Debian GNU/Linux bullseye/sid" || $VERSION_ID != "20"* ]]; then - sudo apt install -y libzip4 - else + if [[ $VERSION_ID == "20"* ]]; then cp libzip.so.4 ../resources/lib + else + sudo apt install -y libzip4 fi elif [[ $ID == "fedora" ]] && (( $VERSION_ID >= 33 )); then