mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
update buildapp script
This commit is contained in:
parent
8ee749dad1
commit
afb6bd9842
2 changed files with 18 additions and 7 deletions
2
Makefile
2
Makefile
|
|
@ -11,7 +11,7 @@ DISPLAY_NAME = YouTube
|
|||
BUNDLE_ID = com.google.ios.youtube
|
||||
|
||||
uYouPlus_FILES = uYouPlus.xm Settings.xm
|
||||
uYouPlus_IPA = /path/to/your/decrypted/YouTube/IPA
|
||||
uYouPlus_IPA = ./tmp/Payload/YouTube.app
|
||||
### Important: edit the path to your decrypted YouTube IPA!!!
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
|
|
|||
23
buildapp.sh
23
buildapp.sh
|
|
@ -22,16 +22,27 @@ else
|
|||
fi
|
||||
|
||||
# Makefile
|
||||
read -e -p "==> Path to the decrypted YouTube iPA: " PATHTOIPA
|
||||
if [[ $PATHTOIPA == *.ipa ]]
|
||||
read -e -p "==> Path to the decrypted YouTube.ipa or YouTube.app: " PATHTOYT
|
||||
if [[ $PATHTOYT == *.ipa ]]
|
||||
then
|
||||
sed -i '' "14s#.*#uYouPlus_IPA = $PATHTOIPA#g" ./Makefile
|
||||
unzip -q "$PATHTOYT" -d ./tmp
|
||||
(cd tmp/Payload/YouTube.app/PlugIns && rm -rf MessagesExtension.appex BroadcastUIExtension.appex BroadcastUploadExtension.appex)
|
||||
cp -R Extensions/*.appex tmp/Payload/YouTube.app/PlugIns
|
||||
make package
|
||||
open ./packages
|
||||
|
||||
elif [[ $PATHTOYT == *.app ]]
|
||||
then
|
||||
mkdir -p ./tmp/Payload/
|
||||
cp -R "$PATHTOYT" ./tmp/Payload 2>/dev/null
|
||||
(cd tmp/Payload/YouTube.app/PlugIns && rm -rf MessagesExtension.appex BroadcastUIExtension.appex BroadcastUploadExtension.appex)
|
||||
cp -R Extensions/*.appex tmp/Payload/YouTube.app/PlugIns
|
||||
make package
|
||||
open ./packages
|
||||
else
|
||||
echo "This is not an iPA"
|
||||
fi
|
||||
echo "This is not an ipa/app!"
|
||||
fi
|
||||
# Clean up
|
||||
tput setaf 1 && echo -e "==> \033[1mCleaning up...\033[0m"
|
||||
find Tweaks/uYou -mindepth 1 ! -name "com.miro.uyou_2.1_iphoneos-arm.deb" ! -name ".gitkeep" -exec rm -rf {} \; 2>/dev/null
|
||||
rm -rf Resources .theos/_/Payload
|
||||
rm -rf tmp/ Resources .theos/_/Payload
|
||||
Loading…
Reference in a new issue