forked from qnblackcat/uYouPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'qnblackcat:main' into main
- Loading branch information
Showing
2 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
#!/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 |