Workaround for zsdt

The procursus team decided to use zstd as a compression for their deb to make deb unusable on unc0ver so i fixed it migration to support it with a workaround.
This commit is contained in:
Yaya4 2021-03-16 22:40:51 +01:00 committed by GitHub
parent 3dc260c5c6
commit 95e0b3e92c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,15 @@ else
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/procursus-keyring_2020.05.09_iphoneos-arm.deb --no-check-certificate
dpkg -i procursus-keyring_2020.05.09_iphoneos-arm.deb
apt update
apt download libzstd1 apt libapt-pkg6.0 xz-utils liblzma5 libncursesw6 ncurses-term libxxhash0 libxxhash-dev
rm -rf /tmp/zstd-support/
mkdir /tmp/zstd-support/
cd /tmp/zstd-support/
apt download libintl8 liblzma5 lz4 xz liblz4-1 xz-utils
wget https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/libzstd1_1.4.7_iphoneos-arm.deb
wget https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/zstd_1.4.7_iphoneos-arm.deb
dpkg -i --force-all *.deb
cd /tmp/procursus-migration
apt download libzstd1 apt libapt-pkg6.0 xz-utils liblzma5 libncursesw6 ncurses-term libxxhash0 libxxhash-dev libgcrypt20 libgpg-error0 dpkg
dpkg -i --force-all /tmp/procursus-migration/libncursesw6*.deb
if [ ! -f "/usr/lib/libncurses.6.dylib" ]; then
echo "Fixing ..."
@ -53,7 +61,8 @@ else
else
echo "Nothing To Do!"
fi
dpkg -i --force-all /tmp/procursus-migration/*
dpkg -i --force-all dpkg*.deb
dpkg -i --force-all *.deb
apt download coreutils
dpkg -r --force-all libidn2
apt --fix-broken install -y -u -o APT::Force-LoopBreak=1