Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
forgot to push
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise committed Dec 18, 2021
1 parent 577d4ce commit 79054f8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ Verbose () {
fi
}

network_check () {
if ! curl -I google.com &>/dev/null; then
Verbose "No Connection to the Internet" 26 -a -k
fi
}
expand () {
origin_dir="$PWD"
cd "$empty_dir" || exit
Expand Down Expand Up @@ -557,7 +562,8 @@ if [ -n "$drun" ]; then

if [ -n "$currentv" ]; then ignore_outdated+=1; fi
if [[ "$latestv" != "$currentv" && "$ignore_outdated" != "11" ]] || [ -n "$force_update" ]; then


network_check
# VARIABLE CHECK
if [ -z "$appleid" ]; then while
printf 'Apple ID: '
Expand All @@ -572,8 +578,9 @@ if [ -n "$drun" ]; then
do true; done; fi

if ! ipatool-azule download -b "$ipadir" -e "$appleid" -p "$appleid_password"; then exit 1; fi

appinst "$dir/$tweakid"/*.ipa

Verbose "Installing "$(basename "$dir/$tweakid"/*.ipa)" ..." -a
appinst "$dir/$tweakid"/*.ipa &>/dev/null
fi
fi

Expand Down Expand Up @@ -726,8 +733,8 @@ appname="$(basename Payload/*.app)"
# GETTING APP EXECUTABLE
executable="Payload/$appname/$(ExtractPlistValue CFBundleExecutable Payload/"$appname"/Info.plist)"
Verbose "App executable is $executable" "Couldn't set app executable" 12 -v -e
rpath="$(expand "$(otool -l "$executable" | grep RPATH -A2 | sed 's/.*path \(.*\)/\1/' | grep -o '^\S*' | grep "@executable_path*" | tail -1 | sed "s|@executable_path|Payload/$appname|g"
)")"
rpath="$(otool -l "$executable" | grep RPATH -A2 | sed 's/.*path \(.*\)/\1/' | grep -o '^\S*' | tail -1 | grep "@executable_path*" | sed "s|@executable_path|Payload/$appname|g"
)"
Verbose "App rpath is $rpath" "Couldn't set app rpath" 13 -v -e

if ! [ -d "$rpath" ]; then
Expand Down Expand Up @@ -794,6 +801,7 @@ if [ -n "$files" ]; then

# FETCHING DEBS
if [ "$os" == "iOS" ] && [ -n "$apt" ]; then
network_check

# SET ROOT PASSWORD
if [ -z "$root_password" ]; then
Expand Down

0 comments on commit 79054f8

Please sign in to comment.