Support Debian 11 Bullseye

This commit is contained in:
LukeZGD 2021-07-26 17:23:57 +08:00
parent a82d78451a
commit a4166d51f4
2 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@
- [**Ubuntu**](https://ubuntu.com/) 20.04 and newer, and Ubuntu-based distros like [Linux Mint](https://www.linuxmint.com/) - [**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/) - [**Arch Linux**](https://www.archlinux.org/) and Arch-based distros like [EndeavourOS](https://endeavouros.com/)
- [**Fedora**](https://getfedora.org/) 33 and newer - [**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 - [**openSUSE**](https://www.opensuse.org/) Tumbleweed and Leap 15.3
- **macOS** 10.13 and newer - **macOS** 10.13 and newer

View File

@ -108,16 +108,16 @@ InstallDepends() {
ln -sf /usr/lib/libzip.so.5 ../resources/lib/libzip.so.4 ln -sf /usr/lib/libzip.so.5 ../resources/lib/libzip.so.4
elif [[ ! -z $UBUNTU_CODENAME && $VERSION_ID == "2"* ]] || 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 [[ ! -z $UBUNTU_CODENAME ]] && sudo add-apt-repository -y universe
sudo apt update 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 SavePkg
cp libcrypto.so.1.0.0 libcurl.so.3 libpng12.so.0 libssl.so.1.0.0 ../resources/lib 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 if [[ $VERSION_ID == "20"* ]]; then
sudo apt install -y libzip4
else
cp libzip.so.4 ../resources/lib cp libzip.so.4 ../resources/lib
else
sudo apt install -y libzip4
fi fi
elif [[ $ID == "fedora" ]] && (( $VERSION_ID >= 33 )); then elif [[ $ID == "fedora" ]] && (( $VERSION_ID >= 33 )); then