Add openSUSE Leap 15.4

This commit is contained in:
LukeZGD 2022-06-10 01:09:09 +08:00
parent a89cba00bb
commit 8100305b14
2 changed files with 5 additions and 6 deletions

View File

@ -70,7 +70,7 @@
- [**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/) 11 Bullseye, 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 to 15.4
- **macOS** 10.13 and newer - **macOS** 10.13 and newer
- **Windows** 7 and newer - **Windows** 7 and newer

View File

@ -167,12 +167,11 @@ InstallDepends() {
ln -sf /usr/lib64/libbz2.so.1.* ../resources/lib/libbz2.so.1.0 ln -sf /usr/lib64/libbz2.so.1.* ../resources/lib/libbz2.so.1.0
sudo dnf install -y bsdiff expect git libimobiledevice perl-Digest-SHA python2 vim-common xmlstarlet zenity sudo dnf install -y bsdiff expect git libimobiledevice perl-Digest-SHA python2 vim-common xmlstarlet zenity
elif [[ $ID == "opensuse-tumbleweed" || $PRETTY_NAME == "openSUSE Leap 15.3" ]]; then elif [[ $ID == "opensuse-tumbleweed" || $PRETTY_NAME == *"Leap 15.3" || $PRETTY_NAME == *"Leap 15.4" ]]; then
if [[ $ID == "opensuse-tumbleweed" ]]; then libimobiledevice="libimobiledevice-1_0-6"
libimobiledevice="libimobiledevice-1_0-6" if [[ $PRETTY_NAME == *"Leap"* ]]; then
else
libimobiledevice="libimobiledevice6"
ln -sf /lib64/libreadline.so.7 ../resources/lib/libreadline.so.8 ln -sf /lib64/libreadline.so.7 ../resources/lib/libreadline.so.8
[[ $VERSION == "15.3" ]] && libimobiledevice="libimobiledevice6"
fi fi
sudo zypper -n in bsdiff curl expect git $libimobiledevice python-base vim xmlstarlet zenity sudo zypper -n in bsdiff curl expect git $libimobiledevice python-base vim xmlstarlet zenity