Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/simple-shooter-server/description
Original file line number Diff line number Diff line change
@@ -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
Binary file added apps/simple-shooter-server/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/simple-shooter-server/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions apps/simple-shooter-server/install
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions apps/simple-shooter-server/uninstall
Original file line number Diff line number Diff line change
@@ -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."