Rename buildapp.sh to build.sh

This commit is contained in:
arichornlover 2023-12-28 15:19:21 -06:00 committed by GitHub
parent 11dd2111bd
commit 322a2023d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 19 deletions

2
build.sh Normal file
View file

@ -0,0 +1,2 @@
# To build, place the IPA file in the project's root directory, then run `./build.sh`
make package IPA=$(pwd)*.ipa FINALPACKAGE=1

View file

@ -1,19 +0,0 @@
read -p $'\e[34m==> \e[1;39mPath to the decrypted YouTube.ipa or YouTube.app: ' PATHTOYT
PATHTOYT="$(echo $PATHTOYT | tr -d "'")"
if [[ "$PATHTOYT" != /* ]]; then
PATHTOYT="./$PATHTOYT"
fi
if [[ ! -f "$PATHTOYT" ]]; then
echo "$PATHTOYT doesn't exist"
exit 1
fi
act --container-options "-v $PATHTOYT:$(pwd)/YouTube.ipa"
if [[ $? -eq 0 ]]; then
mkdir -p packages
cp artifacts/*/*/* packages
gzip -S .gz__ -d packages/*.gz__
open packages
echo "\033[0;32m==> \033[1;39mSHASUM256: $(shasum -a 256 packages/*.ipa)"
else
echo "\033[0;31m==> \033[1;39mFailed building uYouPlus"
fi