forked from powenn/AltServer-Linux-ShellScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·43 lines (40 loc) · 1.48 KB
/
update.sh
File metadata and controls
executable file
·43 lines (40 loc) · 1.48 KB
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
#!/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=$(sed -n 2p version)
DIR=$(pwd)
if [[ $LatestVersion > $LocalVersion ]] ; then
rm -rf AltStore.ipa main netmuxd
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 (only x64 currently)
- x64 version have several modification , deleted 'd' option and added 'w' and 't'
AltStore:
- Updated to 1.4.9
AltSerevr:
- Fix Support for iOS 15
- Updated to v0.0.5
- with netmuxd ,you can do wifi refresh (only x64 currently)
Others:
- GUI edition is now available
if interested,please check https://github.com/powenn/AltServer-LinuxGUI
- please make sure you have install libavahi-compat-libdnssd-dev
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
<< PLease rerun the script to apply the new version >>
EOF
fi
if [[ $LatestVersion = $LocalVersion ]] ; then
echo "you are using the latest release"
fi