-
Notifications
You must be signed in to change notification settings - Fork 0
/
updater
71 lines (71 loc) · 2.3 KB
/
updater
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
echo "Thunder version:"
thunderversion=$(thunder-cli --version)
echo $thunderversion
# STABLE v1.0.0
if [[ $thunderversion == "Thunder is currently this version: STABLE Rev 1.0" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli # To update Thunder version
fi
if [[ $thunderversion == "STABLE v1.0.1" ]]; then
echo "Adding config file..."
cp news.cfg ~/.thunder/news.cfg
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.0.2" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.0.3" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.0.4" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
python3 patches/update_v1.0.5.py $USER
fi
if [[ $thunderversion == "STABLE v1.0.5" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
cp mesa.cfg ~/.thunder/mesa.cfg
fi
if [[ $thunderversion == "STABLE v1.0.6" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.0.7" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
echo "New Version:"
thunder-cli --version
cp gallium.cfg ${HOME}/.thunder/gallium.cfg
python3 patches/update_v1.0.7.py $USER
fi
if [[ $thunderversion == "STABLE v1.0.8" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.0.9" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.1.0" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.1.1" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.1.2" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.1.3" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
echo "Closing in 10 seconds. Please reopen Thunder for changes to take effect."
sleep 10s