Merge pull request #1 from hykilpikonna/patch-1

[F] Fix ldid command detection on iOS
This commit is contained in:
Hykilpikonna
2022-04-25 02:36:22 -04:00
committed by GitHub
+17 -12
View File
@@ -1,30 +1,35 @@
#!/bin/bash #!/bin/bash
echo "[*] Welcome to basti564's automatic fakesigner" echo "[*] Welcome to basti564's automatic fakesigner"
# Ensure this command is not run from root
if [[ $EUID -eq 0 ]]; then if [[ $EUID -eq 0 ]]; then
echo "[!] Please don't run this script as root!" echo "[!] Please don't run this script as root!"
exit exit
fi fi
if [[ $(command -v sudo -u brew) == "" ]]; then
echo "[!] Hombrew not installed!" # Ensure ldid command exists
echo "[!] Please run the following command!" if ! [ -x "$(command -v ldid)" ]; then
echo '[!] /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' echo "[!] ldid not found!"
exit
else if [[ $(command -v sudo -u brew) == "" ]]; then
echo "[§] Found Homebrew" echo "[!] Hombrew not installed!"
if brew ls --versions ldid > /dev/null; then echo "[!] Please run the following command!"
echo "[§] Found ldid" echo '[!] /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'
exit
else else
echo "[!] ldid not found!" echo "[+] Found Homebrew, installing ldid"
echo "[!] Please install ldid with the following command" brew install ldid
echo "[!] brew install ldid"
fi fi
fi fi
# Ensure an ipa file is supplied
if [ -z "$1" ] if [ -z "$1" ]
then then
echo "[!] No .ipa file supplied!" echo "[!] No .ipa file supplied!"
exit exit
fi fi
# Start processing
ipa=$1 ipa=$1
echo [*] unpacking.. echo [*] unpacking..
cd $(dirname $ipa) cd $(dirname $ipa)