This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
update.sh
executable file
·53 lines (50 loc) · 2.28 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Author of the script : powen
LocalVersion=$(sed -n 1p version)
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
ARCH=$(uname -m)
DIR=$(pwd)
if [[ $LatestVersion > $LocalVersion ]] ; then
rm -rf AltStore.ipa main netmuxd AltServer
wget https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/AltStore.ipa
wget https://github.com/powenn/AltServer-Linux-ShellScript/releases/download/$LatestVersion/AltServer-$ARCH.zip
unzip -o AltServer-$ARCH.zip
cp -R ./AltServer-$ARCH/* $DIR
rm -rf AltServer-$ARCH.zip AltServer-$ARCH
chmod +x *.sh
if [[ -e "AltServer" ]]; then
chmod +x AltServer
fi
echo "Done"
cat << EOF
What updated in version $LatestVersion ?
Script:
- Support wifi refresh
- Codes improved
AltStore:
- Updated to 1.5.1
AltSerevr:
- Fix Support for iOS 15
- Updated to v0.0.5
- with netmuxd ,you can do wifi refresh
Others:
- please make sure you have install libavahi-compat-libdnssd-dev
Notice :
#########################################################################################
# https://github.com/osy/Jitterbug#pairing #
# #
# download: https://github.com/osy/Jitterbug/releases #
# Run the program in the zip of the OS you're using right now. #
# #
# Once you let it generate a pairing file, that .mobiledevicep file #
# then REPLACE the one in /var/lib/lockdown/ (where the UUID/numbers are the same!!) #
# #
# This should only be done once, then wifi refresh should always work :) #
#########################################################################################
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
<< PLease relaunch the script to apply the new version >>
EOF
fi
if [[ $LatestVersion = $LocalVersion ]] ; then
echo "you are using the latest release"
fi