Skip to content

Commit 5783ef9

Browse files
inject.sh: Download the latest iloveusomuch.ipa
from GitHub
1 parent 70ee3ad commit 5783ef9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

inject.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ORIGINAL_IPA_SHA256="187253d4aa1c951af95957a49b926cfb7be4e953af578b6963fb4c7c9c0
99
ORIGINAL_IPA_URL="https://archive.org/download/i-3-u-so-com.julienadam.cassius-1.04/I-3-U-SO-com.julienadam.cassius-1.04.ipa"
1010
ORIGINAL_ICON_URL="https://web.archive.org/web/20240111215624if_/https://is4-ssl.mzstatic.com/image/thumb/Purple/2b/df/56/mzi.rptjtlhi.png/738x0w.png"
1111
IPA_NAME="iloveusomuch.ipa"
12+
GITHUB_REPOSITORY_NAME="michaelwright235/iloveusomuch"
1213

1314
ORIGINAL_ZIP_PATH="Payload/Cassius.app/"
1415
ORIGINAL_ZIP_FILES=(
@@ -35,6 +36,21 @@ if [ "$choice" == "n" ]; then
3536
exit 0
3637
fi
3738

39+
# Download the latest iloveusomuch.ipa release
40+
if [ "$1" != "project" ]; then
41+
loveusomuchurl=`curl -s "https://api.github.com/repos/$GITHUB_REPOSITORY_NAME/releases/latest" \
42+
| grep "browser_download_url.*ipa" \
43+
| cut -d : -f 2,3 \
44+
| tr -d \" \
45+
| tr -d '[:blank:]'`
46+
echo "Downloading the latest iloveusomuch.ipa..."
47+
curl -SLo "./$IPA_NAME" "$loveusomuchurl"
48+
if ! [ $? = 0 ]; then
49+
echo "Failed to download iloveusomuch.ipa"
50+
exit 1
51+
fi
52+
fi
53+
3854
# Download the original ipa file if it doesn't exit
3955
if ! [ -f "./$ORIGINAL_IPA_NAME" ]; then
4056
echo "Downloading the original app..."

0 commit comments

Comments
 (0)