forked from gl91306/lunar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall64.sh
More file actions
82 lines (74 loc) · 2.3 KB
/
Copy pathinstall64.sh
File metadata and controls
82 lines (74 loc) · 2.3 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
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
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
#Script created by oxmc
#Made for Lunar-Client by gl91306
#install modprobe if not already installed
if ! command -v modprobe >/dev/null;then
if [ -f /usr/bin/apt ];then
sudo apt update
sudo apt install -y modprobe || echo "Failed to install modprobe."
else
error "Failed to find any package manager to install modprobe."
fi
fi
#Run modprobe fuse
sudo modprobe fuse
cd
#Download client
wget https://github.com/gl91306/lunar/raw/master/lunarclient-2.7.3c-aarch64.AppImage
if [ ! -d ~/lwjgl3arm64 ]; then
mkdir ~/lwjgl3arm64
fi
if [ ! -f jdk-16.0.1+9-jre64.tar.gz ]; then
wget https://github.com/gl91306/lunar/raw/master/jdk-16.0.1%2B9-jre64.gz
fi
if [ ! -f lwjgl3arm64.tar.gz ]; then
wget https://github.com/mikehooper/Minecraft/raw/main/lwjgl3arm64.tar.gz
fi
if [ ! -d /opt/jdk ]; then
sudo mkdir /opt/jdk
fi
sudo tar -zxf jdk-16.0.1+9-jre64.tar.gz -C /opt/jdk
tar -zxf lwjgl3arm64.tar.gz -C ~/lwjgl3arm64
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk-16.0.1+9-jre64/bin/java 0
sudo update-alternatives --set java /opt/jdk/jdk-16.0.1+9-jre64/bin/java
cd
cd lwjgl3arm64
wget https://github.com/gl91306/lunar/raw/master/libwebp-imageio64.so
cd
mkdir lunarassets
sudo apt-get install unzip
wget https://github.com/gl91306/lunar/raw/master/javafx-sdk-17-64.zip
unzip javafx-sdk-17-64.zip -d $HOME/lunarassets
cd
#Change perms of Launcher
sudo chmod +x $HOME/lunarclient-2.7.3c-aarch64.AppImage
#Run launcher
$HOME/lunarclient-2.7.3c-aarch64.AppImage
cd
rm -rf jdk-16.0.1+9-jre64.tar.gz
rm -rf javafx-sdk-17-64.zip
rm -rf lwjgl3arm64.tar.gz
cd
#Add icon
cd
cd lunarassets
wget https://github.com/gl91306/lunar/raw/master/lunarclient.png
cd
#Then make menu button & desktop icon
echo "Creating a desktop entry for Lunar-Client..."
echo "[Desktop Entry]
Name=Lunar Client
Comment=Lunar Client for Rpi made by PiKATchu on Discord.
Exec=$HOME/lunarclient-2.7.3c-aarch64.AppImage
Icon=$HOME/lunarassets/lunarclient.png
Categories=Game;
Type=Application
Terminal=false" > "$HOME/.local/share/applications/Lunar-Client.desktop"
echo "[Desktop Entry]
Name=Lunar Client
Comment=Lunar Client for Rpi made by PiKATchu on Discord.
Exec=$HOME/lunarclient-2.7.3c-aarch64.AppImage
Icon=$HOME/lunarassets/lunarclient.png
Categories=Game;
Type=Application
Terminal=false" > "$HOME/Desktop/Lunar Client"