Procursus 2 support #17

Merged
Yaya48 merged 22 commits from procursus2-support into new 2020-10-16 23:45:21 +02:00
2 changed files with 203 additions and 193 deletions

View File

@ -8,7 +8,7 @@ command -v curl >/dev/null 2>&1 || need+="curl "
command -v wget >/dev/null 2>&1 || need+="wget " command -v wget >/dev/null 2>&1 || need+="wget "
clear clear
echo "Copyright (c) 2020, Yaya4 All rights reserved." echo "Copyright (c) 2020, Yaya4 All rights reserved."
echo -e "\e[31mWelcome to Uncursus Installation Script V2.0.8-4 (Stable) By @Yaya4_4 on Twitter.\e[0m" echo -e "\e[31mWelcome to Uncursus Installation Script V2.0.9 (Stable) By @Yaya4_4 on Twitter.\e[0m"
echo "Checking if this script is running on ARM Darwin" echo "Checking if this script is running on ARM Darwin"
if [ $(uname) = "Linux" ]; then if [ $(uname) = "Linux" ]; then
if [ $(uname -p) = "x86_64" ]; then if [ $(uname -p) = "x86_64" ]; then
@ -64,7 +64,7 @@ apt purge cydia -y --allow-remove-essential
apt install cydia -y essential -y apt install cydia -y essential -y
echo "Done. Installing necessities..." echo "Done. Installing necessities..."
apt update apt update
apt install essential-dummy -y lzma -y ncurses -y apt install essential-dummy -y lzma -y ncurses -y libidn2 -y
echo "Done. Running Firmware Configuration (./firmware.sh)" echo "Done. Running Firmware Configuration (./firmware.sh)"
/usr/libexec/firmware /usr/libexec/firmware
echo "Bootstrap installation complete. Cleaning up..." echo "Bootstrap installation complete. Cleaning up..."

View File

@ -4,7 +4,7 @@ echo You need to run this script as root.
else else
clear clear
echo "Copyright (c) 2020, Yaya4 All rights reserved." echo "Copyright (c) 2020, Yaya4 All rights reserved."
echo -e "\e[31mUncursus 2.0 Migration Part By Yaya4_4 1.2.3 (Stable)\e[0m" echo -e "\e[31mUncursus 2.0 Migration Part By Yaya4_4 2.0.0 (Stable)\e[0m"
checkDependencies(){ checkDependencies(){
echo "Checking Dependencies ..." echo "Checking Dependencies ..."
need2="" need2=""
@ -74,26 +74,36 @@ fi
} }
ProcursusMigration(){ ProcursusMigration(){
echo "Migrating..." echo "Migrating..."
COREUTILSVER=8.32-4 COREUTILSVER=8.32-6
rm /etc/apt/sources.list.d/cydia.list rm /etc/apt/sources.list.d/cydia.list
echo "deb https://apt.procurs.us/ iphoneos-arm64/${CFVER} main" >> /etc/apt/sources.list.d/cydia.list echo "deb https://apt.procurs.us/ iphoneos-arm64/${CFVER} main" >> /etc/apt/sources.list.d/cydia.list
rm -rf /tmp/procursus-migration rm -rf /tmp/procursus-migration
mkdir /tmp/procursus-migration mkdir /tmp/procursus-migration
rm -rf /tmp/coreutils
mkdir /tmp/coreutils/
wget -q http://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/procursus-keyring_2020.05.09_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration wget -q http://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/procursus-keyring_2020.05.09_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/coreutils_${COREUTILSVER}_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/coreutils_${COREUTILSVER}_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/coreutils/
dpkg -i /tmp/procursus-migration/procursus-keyring_2020.05.09_iphoneos-arm.deb wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/libzstd1_1.4.5-2_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
apt update wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/apt_2.1.10-3_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
apt install libncursesw6 -y wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/libapt-pkg6.0_2.1.10-3_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/xz-utils_5.2.5-2_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/liblzma5_5.2.5-2_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/libncursesw6_6.2-1_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/ncurses-term_6.2-1_iphoneos-arm.deb --no-check-certificate --directory-prefix=/tmp/procursus-migration
dpkg -i --force-all /tmp/procursus-migration/libncursesw6_6.2-1_iphoneos-arm.deb
if [ ! -f "/usr/lib/libncurses.6.dylib" ]; then if [ ! -f "/usr/lib/libncurses.6.dylib" ]; then
echo "Fixing ..." echo "Fixing ..."
ln -s /usr/lib/libncursesw.6.dylib /usr/lib/libncurses.6.dylib ln -s /usr/lib/libncursesw.6.dylib /usr/lib/libncurses.6.dylib
else else
echo "Nothing To Do!" echo "Nothing To Do!"
fi fi
apt install ncurses-bin -y dpkg -i --force-all /tmp/procursus-migration/*
apt install xz-utils diskdev-cmds -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1 apt update
dpkg -r --force-all libidn2
apt --fix-broken install -y -u -o APT::Force-LoopBreak=1
apt install diskdev-cmds -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1
apt dist-upgrade -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1 apt dist-upgrade -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1
dpkg -i --force-all /tmp/procursus-migration/coreutils_${COREUTILSVER}_iphoneos-arm.deb dpkg -i --force-all /tmp/coreutils/coreutils_${COREUTILSVER}_iphoneos-arm.deb
} }
MigrationCleanUp(){ MigrationCleanUp(){
echo "CleaningUp ..." echo "CleaningUp ..."