re-added buildapp.sh

This is not functional yet.
This commit is contained in:
arichornlover 2023-12-05 02:22:44 -06:00 committed by GitHub
parent 4f332c7009
commit 82e00bdd52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

19
buildapp.sh Normal file
View file

@ -0,0 +1,19 @@
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