18 lines
411 B
Bash
Executable File
18 lines
411 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
BIN_DIR="$(dirname "$0")/../bin"
|
|
BINARY="$BIN_DIR/tronbyt-server-linux-arm64"
|
|
URL="https://github.com/tronbyt/server/releases/latest/download/tronbyt-server-linux-arm64"
|
|
|
|
if [ -f "$BINARY" ]; then
|
|
echo "tronbyt binary already exists, skipping download"
|
|
exit 0
|
|
fi
|
|
|
|
echo "Downloading tronbyt server binary..."
|
|
mkdir -p "$BIN_DIR"
|
|
curl -L -o "$BINARY" "$URL"
|
|
chmod +x "$BINARY"
|
|
echo "Done"
|