@@ -10,20 +10,20 @@ ORIGINAL_IPA_URL="https://archive.org/download/i-3-u-so-com.julienadam.cassius-1
10
10
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"
11
11
IPA_NAME=" iloveusomuch.ipa"
12
12
13
+ ORIGINAL_ZIP_PATH=" Payload/Cassius.app/"
14
+ ORIGINAL_ZIP_FILES=(
15
+ " ${ORIGINAL_ZIP_PATH} background.png"
16
+ " ${ORIGINAL_ZIP_PATH} [email protected] "
17
+ " ${ORIGINAL_ZIP_PATH} Loader.m4v"
18
+ " ${ORIGINAL_ZIP_PATH} Videos.m4v"
19
+ )
20
+
13
21
if [ " $1 " == " project" ]; then
14
22
OUT_DIR=" ./iloveusomuch/originalAssets"
15
23
else
16
24
OUT_DIR=" ./Payload/iloveusomuch.app"
17
25
fi
18
26
19
- zipPath=" Payload/Cassius.app/"
20
- zipFiles=(
21
- " ${zipPath} background.png"
22
-
23
- " ${zipPath} Loader.m4v"
24
- " ${zipPath} Videos.m4v"
25
- )
26
-
27
27
# Suggest downloading the original ipa file if it doesn't exit
28
28
if ! [ -f " ./$ORIGINAL_IPA_NAME " ]; then
29
29
echo " The original.ipa file doesn't exist. This script can automatically download it from archive.org."
51
51
52
52
# Check if the required files are in place
53
53
givenZipFileList=` unzip -Z1 $ORIGINAL_IPA_NAME `
54
- for file in ${zipFiles [@]} ; do
54
+ for file in ${ORIGINAL_ZIP_FILES [@]} ; do
55
55
if ! echo " $givenZipFileList " | grep $file >> /dev/null; then
56
56
echo " '$file ' not found. Are you sure that you're using the correct .ipa file?"
57
57
exit 1
64
64
65
65
# Create an argument for unzip to extract only these files
66
66
zipFilesArg=" "
67
- for file in ${zipFiles [@]} ; do
67
+ for file in ${ORIGINAL_ZIP_FILES [@]} ; do
68
68
zipFilesArg=" ${zipFilesArg} ${file} "
69
69
done
70
70
0 commit comments