Skip to content

Commit

Permalink
yeeeeeeeeeeee
Browse files Browse the repository at this point in the history
  • Loading branch information
gl91306 committed Sep 21, 2021
2 parents f73eae6 + f20ac66 commit c2f7c90
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Bug
about: Is a bug u found
title: ''
labels: ''
assignees: ''

---

**Describe the bug**

**Paste contents of /.lunarclient/logs/renderer.log here, after it crashed after you set launcher to stay visible when launched.**
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
# Lunar Client for Arm

This is a build of the Moonsworth Lunar Client for arm prceccors. Because Lunar Client's API does not support arm, I added some code that fetches your own java instead of lunars custom one.
There is also a script for automatically changing the lwjgl args for arm.
This is a build of the Moonsworth Lunar Client for ARM processors. Because Lunar Client's API does not support ARM, I added some code that fetches your own java instead of Lunars custom one.
There is also a script for automatically changing the lwjgl args for ARM.
There's also support for Microsoft Accounts!


# Dependecies

Download the install script and run it.

ARM32
```
wget https://raw.githubusercontent.com/gl91306/lunar/master/install.sh
chmod +x install.sh
./install.sh
```

ARM64
```
wget https://raw.githubusercontent.com/gl91306/lunar/master/install64.sh
chmod +x install64.sh
./install64.sh
```

Thats it!

Heres a youtube video for the installation: https://youtu.be/-2LZG9YSKZg
Here's a Youtube video for the installation: https://youtu.be/-2LZG9YSKZg
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ sudo svn checkout https://github.com/gl91306/lunar/trunk/jre
cd
sudo apt-get install unzip
wget https://github.com/gl91306/lunar/raw/master/javafx-sdk-17.zip
unzip javafx-sdk-17.zip -d /home/$HOME/lunarassets
mkdir lunarassets
unzip javafx-sdk-17.zip -d $HOME/lunarassets
cd lunarassets
cd javafx-sdk-17
cd lib
Expand All @@ -82,7 +83,6 @@ cd
sudo chmod +x $HOME/lunarclient-2.8.0-armv7l.AppImage

#Run launcher
#$HOME/lunarclient-2.8.0-armv7l.AppImage
cd
rm -rf jdk-8u251-linux-arm32-vfp-hflt.tar.gz
rm -rf jdk-16.0.1+9-jre.tar.gz
Expand All @@ -97,7 +97,6 @@ cp lwjgl3arm32/libopenal.so $HOME/lwjgl2arm32

#Add icon
cd
mkdir lunarassets
cd lunarassets
wget https://github.com/gl91306/lunar/raw/master/lunarclient.png
cd
Expand All @@ -121,3 +120,5 @@ Icon=$HOME/lunarassets/lunarclient.png
Categories=Game;
Type=Application
Terminal=false" > "$HOME/Desktop/Lunar Client"

$HOME/lunarclient-2.7.3c-armv7l.AppImage
81 changes: 81 additions & 0 deletions install64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/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.8.0-arm64.AppImage
if [ ! -d ~/lwjgl3arm64 ]; then
mkdir ~/lwjgl3arm64
fi
if [ ! -f jdk-16.0.1+9-jre64.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.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.8.0-arm64.AppImage

#Run launcher
cd
rm -rf jdk-16.0.1+9-jre64.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.8.0-arm64.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.8.0-arm64.AppImage
Icon=$HOME/lunarassets/lunarclient.png
Categories=Game;
Type=Application
Terminal=false" > "$HOME/Desktop/Lunar Client"

0 comments on commit c2f7c90

Please sign in to comment.