diff --git a/apps/simple-shooter-server/description b/apps/simple-shooter-server/description new file mode 100644 index 0000000000..3fe4d56ead --- /dev/null +++ b/apps/simple-shooter-server/description @@ -0,0 +1 @@ +my game as a linux arm based app uses electron so it will be quite heavy for raspbian or any form of linux diff --git a/apps/simple-shooter-server/icon-24.png b/apps/simple-shooter-server/icon-24.png new file mode 100644 index 0000000000..c0426a1085 Binary files /dev/null and b/apps/simple-shooter-server/icon-24.png differ diff --git a/apps/simple-shooter-server/icon-64.png b/apps/simple-shooter-server/icon-64.png new file mode 100644 index 0000000000..f6449ae04a Binary files /dev/null and b/apps/simple-shooter-server/icon-64.png differ diff --git a/apps/simple-shooter-server/install b/apps/simple-shooter-server/install new file mode 100755 index 0000000000..8ebb4897da --- /dev/null +++ b/apps/simple-shooter-server/install @@ -0,0 +1,35 @@ +#!/bin/bash +APPDIR="$HOME/.local/share/simple-shooter-server" +DESKTOPFILE="$HOME/.local/share/applications/simple-shooter-server.desktop" +ZIP_URL="https://drive.google.com/uc?export=download&id=1pGhRYJxymjfEDKbxtI-hJdsNHH-y4vKI" + +if [ ! -d "$APPDIR" ]; then + echo "Installing Simple Shooter Server..." + mkdir -p "$APPDIR" + cd "$APPDIR" + + # Download with confirmation token handling + CONFIRM=$(curl -sc /tmp/gcookie "https://drive.google.com/uc?export=download&id=1pGhRYJxymjfEDKbxtI-hJdsNHH-y4vKI" | grep -o 'confirm=[^&]*' | sed 's/confirm=//') + curl -Lb /tmp/gcookie "https://drive.google.com/uc?export=download&confirm=$CONFIRM&id=1pGhRYJxymjfEDKbxtI-hJdsNHH-y4vKI" -o server.zip + + unzip -o server.zip + rm server.zip + + chmod +x start.sh + + # Create .desktop file + echo "[Desktop Entry] + Name=Simple Shooter Server + Exec=lxterminal -e /bin/bash -c 'cd \$HOME/.local/share/simple-shooter-server && ./start.sh' + Terminal=false + Type=Application + Categories=Game;" > "$DESKTOPFILE" + + chmod +x "$DESKTOPFILE" + + echo "Installation complete." +fi + +echo "Starting Simple Shooter Server..." +cd "$APPDIR" +./start.sh diff --git a/apps/simple-shooter-server/uninstall b/apps/simple-shooter-server/uninstall new file mode 100755 index 0000000000..fdec91d033 --- /dev/null +++ b/apps/simple-shooter-server/uninstall @@ -0,0 +1,21 @@ +#!/bin/bash +APPDIR="$HOME/.local/share/simple-shooter-server" +DESKTOPFILE="$HOME/.local/share/applications/simple-shooter-server.desktop" + +echo "Uninstalling Simple Shooter Part 3..." + +if [ -d "$APPDIR" ]; then + rm -rf "$APPDIR" + echo "Removed application files." +else + echo "Application files not found." +fi + +if [ -f "$DESKTOPFILE" ]; then + rm "$DESKTOPFILE" + echo "Removed desktop shortcut." +else + echo "Desktop shortcut not found." +fi + +echo "Uninstall complete."