From e16ebb14b6eee1d02ad3102dbe89a10bd63f9d16 Mon Sep 17 00:00:00 2001 From: qnblackcat Date: Sat, 27 Jan 2024 10:47:06 +0700 Subject: [PATCH 1/2] missing dylibs --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5a60177..0fed1a0 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ export ARCHS = arm64 export libcolorpicker_ARCHS = arm64 export libFLEX_ARCHS = arm64 export Alderis_XCODEOPTS = LD_DYLIB_INSTALL_NAME=@rpath/Alderis.framework/Alderis -export Alderis_XCODEFLAGS = DYLIB_INSTALL_NAME_BASE=/Library/Frameworks BUILD_LIBRARY_FOR_DISTRIBUTION=YES ARCHS="$(ARCHS)" -q +export Alderis_XCODEFLAGS = DYLIB_INSTALL_NAME_BASE=/Library/Frameworks BUILD_LIBRARY_FOR_DISTRIBUTION=YES ARCHS="$(ARCHS)" export libcolorpicker_LDFLAGS = -F$(TARGET_PRIVATE_FRAMEWORK_PATH) -install_name @rpath/libcolorpicker.dylib export ADDITIONAL_CFLAGS = -I$(THEOS_PROJECT_DIR)/Tweaks/RemoteLog @@ -14,7 +14,7 @@ MODULES = jailed endif ifndef YOUTUBE_VERSION -YOUTUBE_VERSION = 18.49.3 +YOUTUBE_VERSION = 19.02.1 endif ifndef UYOU_VERSION UYOU_VERSION = 3.0.1 @@ -29,7 +29,7 @@ BUNDLE_ID = com.google.ios.youtube $(TWEAK_NAME)_FILES := $(wildcard Sources/*.xm) $(wildcard Sources/*.x) $(TWEAK_NAME)_FRAMEWORKS = UIKit Security $(TWEAK_NAME)_CFLAGS = -fobjc-arc -DTWEAK_VERSION=\"$(PACKAGE_VERSION)\" -$(TWEAK_NAME)_INJECT_DYLIBS = Tweaks/uYou/Library/MobileSubstrate/DynamicLibraries/uYou.dylib $(THEOS_OBJ_DIR)/libFLEX.dylib $(THEOS_OBJ_DIR)/iSponsorBlock.dylib $(THEOS_OBJ_DIR)/YouPiP.dylib $(THEOS_OBJ_DIR)/YouTubeDislikesReturn.dylib $(THEOS_OBJ_DIR)/YTABConfig.dylib $(THEOS_OBJ_DIR)/YTUHD.dylib $(THEOS_OBJ_DIR)/DontEatMyContent.dylib $(THEOS_OBJ_DIR)/IAmYouTube.dylib $(THEOS_OBJ_DIR)/YTClassicVideoQuality.dylib $(THEOS_OBJ_DIR)/NoYTPremium.dylib $(THEOS_OBJ_DIR)/YTSpeed.dylib +$(TWEAK_NAME)_INJECT_DYLIBS = Tweaks/uYou/Library/MobileSubstrate/DynamicLibraries/uYou.dylib $(THEOS_OBJ_DIR)/libFLEX.dylib $(THEOS_OBJ_DIR)/iSponsorBlock.dylib $(THEOS_OBJ_DIR)/YouTubeDislikesReturn.dylib $(THEOS_OBJ_DIR)/YouPiP.dylib $(THEOS_OBJ_DIR)/YTABConfig.dylib $(THEOS_OBJ_DIR)/YTUHD.dylib $(THEOS_OBJ_DIR)/DontEatMyContent.dylib $(THEOS_OBJ_DIR)/YTVideoOverlay.dylib $(THEOS_OBJ_DIR)/YouMute.dylib $(THEOS_OBJ_DIR)/YouQuality.dylib $(THEOS_OBJ_DIR)/IAmYouTube.dylib $(THEOS_OBJ_DIR)/YTClassicVideoQuality.dylib $(THEOS_OBJ_DIR)/NoYTPremium.dylib $(THEOS_OBJ_DIR)/YTSpeed.dylib $(TWEAK_NAME)_EMBED_LIBRARIES = $(THEOS_OBJ_DIR)/libcolorpicker.dylib $(TWEAK_NAME)_EMBED_FRAMEWORKS = $(_THEOS_LOCAL_DATA_DIR)/$(THEOS_OBJ_DIR_NAME)/install_Alderis.xcarchive/Products/var/jb/Library/Frameworks/Alderis.framework $(TWEAK_NAME)_EMBED_BUNDLES = $(wildcard Bundles/*.bundle) From 3e8435dc8f02bd8e80eb3169b3b7e5e1a2a6b597 Mon Sep 17 00:00:00 2001 From: qnblackcat Date: Sat, 27 Jan 2024 10:59:50 +0700 Subject: [PATCH 2/2] better script --- build.sh | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 93b764a..7333d3a 100755 --- a/build.sh +++ b/build.sh @@ -1,2 +1,37 @@ -# To build, place the IPA file in the project's root directory, then run `./build.sh` -make package IPA=$(pwd)*.ipa FINALPACKAGE=1 \ No newline at end of file +#!/bin/bash +# To build, either place the IPA file in the project's root directory, or get the path to the IPA, then run `./build.sh` + +read -p $'\e[34m==> \e[1;39mPath to the decrypted YouTube.ipa or YouTube.app. If nothing is provied, any ipa/app in the project\'s root directory will be used: ' PATHTOYT + +# Check if PATHTOYT is empty +if [ -z "$PATHTOYT" ]; then + # Look for ipa/app files in the current directory + IPAS=$(find . -maxdepth 1 -type f \( -name "*.ipa" -o -name "*.app" \)) + + # Check if there are two or more ipa/app files + COUNT=$(echo "$IPAS" | wc -l) + + if [ "$COUNT" -ge 2 ]; then + echo "❌ Error: Multiple IPA/app files found in the project's root directory directory. Make sure there is only one ipa." + exit 1 + + elif [ -n "$IPAS" ]; then + PATHTOYT=$(echo "$IPAS" | head -n 1) + + else + echo "❌ Error: No IPA/app file found in the project's root directory directory." + exit 1 + fi +fi + +make package THEOS_PACKAGE_SCHEME=rootless IPA="$PATHTOYT" FINALPACKAGE=1 + +# SHASUM +if [[ $? -eq 0 ]]; then + open packages + echo "SHASUM256: $(shasum -a 256 packages/*.ipa)" + +else + echo "Failed building uYouPlus" + +fi \ No newline at end of file