This repository was archived by the owner on Sep 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 2
2
ReleaseFile
3
3
.DS_Store
4
4
Self
5
- AltServer- *
5
+ AltServer- *
6
+ AltServerData
7
+ saved.txt
Original file line number Diff line number Diff line change 3
3
4
4
HasExistAccount=$( cat saved.txt)
5
5
HasExistipa=$( ls ipa)
6
- UDID=$( lsusb -v 2> /dev/null | grep -e " Apple Inc" -A 2 | grep iSerial | awk ' {print $3}' )
6
+ _udid=$( lsusb -v 2> /dev/null | grep -e " Apple Inc" -A 2 | grep iSerial | awk ' {print $3}' )
7
+ _udid_length=${# _udid}
8
+ if [ $_udid_length == " 24" ]; then
9
+ UDID=${_udid: 0: 8} " -" ${_udid: 8}
10
+ fi
11
+ if [ $_udid_length == " 40" ]; then
12
+ UDID=$_udid
13
+ fi
7
14
8
15
# Check if there exists saved account
9
16
# Ask if want to use saved account
@@ -40,7 +47,7 @@ AskAccount() {
40
47
# Execute AltServer
41
48
# Check if this account existed before
42
49
AltServer () {
43
- ./AltServer -u ${UDID} -a $AppleID -p $password $PATH
50
+ ./AltServer -u ${UDID} -a $AppleID -p $password $IPA_PATH
44
51
if [[ " $CheckAccount " == " " ]] ; then
45
52
AccountSaving=1
46
53
fi
@@ -115,7 +122,7 @@ if [[ $mainScript = 1 ]] ; then
115
122
AskAccount
116
123
Account=$AppleID ,$password
117
124
CheckAccount=$( grep $Account saved.txt)
118
- PATH =./AltStore.ipa
125
+ IPA_PATH =./AltStore.ipa
119
126
AltServer
120
127
fi
121
128
if [[ $mainScript = 2 ]] ; then
@@ -124,7 +131,7 @@ if [[ $mainScript = 2 ]] ; then
124
131
AskAccount
125
132
Account=$AppleID ,$password
126
133
CheckAccount=$( grep $Account saved.txt)
127
- PATH =./ipa/$Existipa
134
+ IPA_PATH =./ipa/$Existipa
128
135
AltServer
129
136
fi
130
137
fi
You can’t perform that action at this time.
0 commit comments