Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit 627c204

Browse files
committed
update
1 parent ee8e65f commit 627c204

File tree

8 files changed

+356
-69
lines changed

8 files changed

+356
-69
lines changed

AltServer-aarch64/run.sh

Lines changed: 71 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/bash
22

33
echo "Checking source"
4-
if [[ ! -e "./ipa/AltStore.ipa" ]]; then
5-
mkdir ipa
6-
cd ipa && wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
7-
cd ..
4+
if [[ ! -e "AltStore.ipa" ]]; then
5+
wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
86
fi
97
if [[ ! -e "ipa" ]]; then
108
mkdir ipa
@@ -16,8 +14,11 @@ if [[ "stat AltServer | grep -rw-r--r--" != "" ]] ; then
1614
chmod +x AltServer
1715
fi
1816

17+
HasExistAccount=$(cat saved.txt)
18+
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
19+
HasExistipa=$(ls ipa)
1920

20-
cat << EOF >help.txt
21+
cat << EOF >help.txt
2122
2223
#####################################
2324
# Welcome to the AltServer script #
@@ -27,7 +28,9 @@ Usage: [OPTION]
2728
2829
OPTIONS
2930
30-
i, --Install ipa
31+
1, --Install AltStore
32+
Install AltStore to your device
33+
2, --Install ipa
3134
Install ipa in Folder 'ipa',make sure you have put ipa files in the Folder before run this
3235
d, --Daemon mode
3336
Switch to Daemon mode to refresh apps or AltStore
@@ -64,12 +67,70 @@ while [ $RunScript = 0 ] ; do
6467
read option
6568
case "$option" in
6669

67-
i|--Install-ipa )
70+
1|--Install-ipa )
6871

69-
HasExistAccount=$(cat saved.txt)
70-
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
71-
HasExistipa=$(ls ipa)
72+
for job in `jobs -p`
73+
do
74+
wait $job
75+
done
76+
77+
idevicepair pair
78+
79+
if [[ "$HasExistAccount" != "" ]]; then
80+
echo "Do you want to use saved Account ? [y/n]"
81+
read reply
82+
case "$reply" in
83+
[yY][eE][sS]|[yY] )
84+
echo "Which account you want to use ? "
85+
UseExistAccount=1
86+
nl saved.txt
87+
echo "please enter the number "
88+
read number
89+
ExistID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
90+
ExistPasswd=$(sed -n "$number"p saved.txt | cut -d , -f 2)
91+
;;
92+
[nN][oO]|[nN] )
93+
UseExistAccount=0
94+
;;
95+
esac
96+
fi
97+
if [[ "$HasExistAccount" == "" ]]; then
98+
UseExistAccount=0
99+
fi
100+
if [[ $UseExistAccount = 0 ]]; then
101+
echo "Please provide your AppleID"
102+
read AppleID
103+
echo "Please provide the password of AppleID"
104+
read password
105+
fi
72106

107+
Account=$AppleID,$password
108+
CheckAccount=$(grep $Account saved.txt)
109+
if [[ "$CheckAccount" == "" ]] ; then
110+
echo "Do you want to save this Account ? [y/n]"
111+
read ans
112+
case "$ans" in
113+
[yY][eE][sS]|[yY] )
114+
echo "$Account" >> saved.txt
115+
echo "saved"
116+
;;
117+
[nN][oO]|[nN] )
118+
;;
119+
esac
120+
fi
121+
PATH=./AltStore.ipa
122+
123+
if [[ $UseExistAccount = 1 ]]; then
124+
./AltServer -u ${UDID} -a $ExistID -p $ExistPasswd $PATH
125+
fi
126+
if [[ $UseExistAccount = 0 ]]; then
127+
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
128+
fi
129+
exit
130+
;;
131+
132+
2|--Install-ipa )
133+
73134
for job in `jobs -p`
74135
do
75136
wait $job

AltServer-armv7/run.sh

Lines changed: 71 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/bash
22

33
echo "Checking source"
4-
if [[ ! -e "./ipa/AltStore.ipa" ]]; then
5-
mkdir ipa
6-
cd ipa && wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
7-
cd ..
4+
if [[ ! -e "AltStore.ipa" ]]; then
5+
wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
86
fi
97
if [[ ! -e "ipa" ]]; then
108
mkdir ipa
@@ -16,8 +14,11 @@ if [[ "stat AltServer | grep -rw-r--r--" != "" ]] ; then
1614
chmod +x AltServer
1715
fi
1816

17+
HasExistAccount=$(cat saved.txt)
18+
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
19+
HasExistipa=$(ls ipa)
1920

20-
cat << EOF >help.txt
21+
cat << EOF >help.txt
2122
2223
#####################################
2324
# Welcome to the AltServer script #
@@ -27,7 +28,9 @@ Usage: [OPTION]
2728
2829
OPTIONS
2930
30-
i, --Install ipa
31+
1, --Install AltStore
32+
Install AltStore to your device
33+
2, --Install ipa
3134
Install ipa in Folder 'ipa',make sure you have put ipa files in the Folder before run this
3235
d, --Daemon mode
3336
Switch to Daemon mode to refresh apps or AltStore
@@ -64,12 +67,70 @@ while [ $RunScript = 0 ] ; do
6467
read option
6568
case "$option" in
6669

67-
i|--Install-ipa )
70+
1|--Install-ipa )
6871

69-
HasExistAccount=$(cat saved.txt)
70-
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
71-
HasExistipa=$(ls ipa)
72+
for job in `jobs -p`
73+
do
74+
wait $job
75+
done
76+
77+
idevicepair pair
78+
79+
if [[ "$HasExistAccount" != "" ]]; then
80+
echo "Do you want to use saved Account ? [y/n]"
81+
read reply
82+
case "$reply" in
83+
[yY][eE][sS]|[yY] )
84+
echo "Which account you want to use ? "
85+
UseExistAccount=1
86+
nl saved.txt
87+
echo "please enter the number "
88+
read number
89+
ExistID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
90+
ExistPasswd=$(sed -n "$number"p saved.txt | cut -d , -f 2)
91+
;;
92+
[nN][oO]|[nN] )
93+
UseExistAccount=0
94+
;;
95+
esac
96+
fi
97+
if [[ "$HasExistAccount" == "" ]]; then
98+
UseExistAccount=0
99+
fi
100+
if [[ $UseExistAccount = 0 ]]; then
101+
echo "Please provide your AppleID"
102+
read AppleID
103+
echo "Please provide the password of AppleID"
104+
read password
105+
fi
72106

107+
Account=$AppleID,$password
108+
CheckAccount=$(grep $Account saved.txt)
109+
if [[ "$CheckAccount" == "" ]] ; then
110+
echo "Do you want to save this Account ? [y/n]"
111+
read ans
112+
case "$ans" in
113+
[yY][eE][sS]|[yY] )
114+
echo "$Account" >> saved.txt
115+
echo "saved"
116+
;;
117+
[nN][oO]|[nN] )
118+
;;
119+
esac
120+
fi
121+
PATH=./AltStore.ipa
122+
123+
if [[ $UseExistAccount = 1 ]]; then
124+
./AltServer -u ${UDID} -a $ExistID -p $ExistPasswd $PATH
125+
fi
126+
if [[ $UseExistAccount = 0 ]]; then
127+
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
128+
fi
129+
exit
130+
;;
131+
132+
2|--Install-ipa )
133+
73134
for job in `jobs -p`
74135
do
75136
wait $job

AltServer-x64/run.sh

Lines changed: 72 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/bash
22

33
echo "Checking source"
4-
if [[ ! -e "./ipa/AltStore.ipa" ]]; then
5-
mkdir ipa
6-
cd ipa && wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
7-
cd ..
4+
if [[ ! -e "AltStore.ipa" ]]; then
5+
wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
86
fi
97
if [[ ! -e "ipa" ]]; then
108
mkdir ipa
@@ -19,7 +17,11 @@ if [[ "stat AltServerDaemon | grep -rw-r--r--" != "" ]] ; then
1917
chmod +x AltServerDaemon
2018
fi
2119

22-
cat << EOF >help.txt
20+
HasExistAccount=$(cat saved.txt)
21+
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
22+
HasExistipa=$(ls ipa)
23+
24+
cat << EOF >help.txt
2325
2426
#####################################
2527
# Welcome to the AltServer script #
@@ -29,7 +31,9 @@ Usage: [OPTION]
2931
3032
OPTIONS
3133
32-
i, --Install ipa
34+
1, --Install AltStore
35+
Install AltStore to your device
36+
2, --Install ipa
3337
Install ipa in Folder 'ipa',make sure you have put ipa files in the Folder before run this
3438
d, --Daemon mode
3539
Switch to Daemon mode to refresh apps or AltStore
@@ -66,12 +70,70 @@ while [ $RunScript = 0 ] ; do
6670
read option
6771
case "$option" in
6872

69-
i|--Install-ipa )
73+
1|--Install-ipa )
7074

71-
HasExistAccount=$(cat saved.txt)
72-
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
73-
HasExistipa=$(ls ipa)
75+
for job in `jobs -p`
76+
do
77+
wait $job
78+
done
79+
80+
idevicepair pair
81+
82+
if [[ "$HasExistAccount" != "" ]]; then
83+
echo "Do you want to use saved Account ? [y/n]"
84+
read reply
85+
case "$reply" in
86+
[yY][eE][sS]|[yY] )
87+
echo "Which account you want to use ? "
88+
UseExistAccount=1
89+
nl saved.txt
90+
echo "please enter the number "
91+
read number
92+
ExistID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
93+
ExistPasswd=$(sed -n "$number"p saved.txt | cut -d , -f 2)
94+
;;
95+
[nN][oO]|[nN] )
96+
UseExistAccount=0
97+
;;
98+
esac
99+
fi
100+
if [[ "$HasExistAccount" == "" ]]; then
101+
UseExistAccount=0
102+
fi
103+
if [[ $UseExistAccount = 0 ]]; then
104+
echo "Please provide your AppleID"
105+
read AppleID
106+
echo "Please provide the password of AppleID"
107+
read password
108+
fi
109+
110+
Account=$AppleID,$password
111+
CheckAccount=$(grep $Account saved.txt)
112+
if [[ "$CheckAccount" == "" ]] ; then
113+
echo "Do you want to save this Account ? [y/n]"
114+
read ans
115+
case "$ans" in
116+
[yY][eE][sS]|[yY] )
117+
echo "$Account" >> saved.txt
118+
echo "saved"
119+
;;
120+
[nN][oO]|[nN] )
121+
;;
122+
esac
123+
fi
124+
PATH=./AltStore.ipa
74125

126+
if [[ $UseExistAccount = 1 ]]; then
127+
./AltServer -u ${UDID} -a $ExistID -p $ExistPasswd $PATH
128+
fi
129+
if [[ $UseExistAccount = 0 ]]; then
130+
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
131+
fi
132+
exit
133+
;;
134+
135+
2|--Install-ipa )
136+
75137
for job in `jobs -p`
76138
do
77139
wait $job

Test/help.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

Test/ipa/AltStore.ipa

-5.14 MB
Binary file not shown.

0 commit comments

Comments
 (0)