-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app request: Minecraft Pi Server (fixed) #2434
Comments
A zipfile was found in the body of your issue.
|
A zipfile was found in the body of an issue comment.
|
sorry if i did it wrong im new to github |
A zipfile was found in the body of an issue comment.
#update os
sudo apt-get update
#create server folder
mkdir $HOME/mcpi_server
cd $HOME/mcpi_server
#download server
if $(uname -m | grep '64'); then
echo "installing 64-bit"
wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/2.4.8/minecraft-pi-reborn-client_2.4.8_arm64.deb
else
echo "installing 32-bit"
wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/2.4.8/minecraft-pi-reborn-client_2.4.8_armhf.deb
#make server executable
chmod +x server.AppImage
#make desktop shortcut
mkdir -p ~/.local/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=$HOME/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$HOME/Minecraft Pi Server/mcpi_server_icon.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
fi
rm -rf $HOME/mcpi_server/server.AppImage
rm $HOME/.local/share/applications/mcpi_server.desktop
|
I suggest you look at the other scripts if you want to make a single install file that satisfies both architectures
this is very bad. here is an example of what I am talking about Lines 24 to 30 in bd65fa6
also you don't seem to understand the concept of if/else statements. you placed the fi at the end of the file, meaning that only the "32bit" install would get the .desktop file
also, please read our wiki on creating an app as there are a multitude of issues in your scripts and I think reading our documentation will help you correct them: https://pi-apps.io/wiki/development/Creating-an-app/ |
Sorry about that i did what you said here is the new file |
A zipfile was found in the body of an issue comment.
#!/bin/bash
version=2.4.8
#update os
sudo apt-get update
#create server folder
mkdir $HOME/mcpi_server
cd $HOME/mcpi_server
#download server
wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-2.4.8-arm64.AppImage || error "failed to download server"
#make server executable
chmod +x server.AppImage
#make desktop shortcut
mkdir -p ~/.local/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=$HOME/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$HOME/pi-apps/apps/Minecraft Pi Server/icon-64.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
#!/bin/bash
version=2.4.8
#update os
sudo apt-get update
#create server folder
mkdir $HOME/mcpi_server
cd $HOME/mcpi_server
#download server
wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-2.4.8-armhf.AppImage || error "failed to download server"
#make server executable
chmod +x server.AppImage
#make desktop shortcut
mkdir -p ~/.local/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=$HOME/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$HOME/pi-apps/apps/Minecraft Pi Server/icon-24.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
#!/bin/bash
#remove server app image
rm -rf $HOME/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
rm -rf $HOME/.local/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
|
What is the name of the app?
Minecraft Pi Server
(Optional) Where is the app hosted?
No response
About the app
a simple minecraft pi server install (sorry i forgot to include the description last time)
Upload file or Add PR Link
Minecraft Pi Server.zip
Confirmations
The text was updated successfully, but these errors were encountered: