generated: add (generated, scripts)
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
HYTALE_SERVER_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
PROJECT_ROOT="$(cd "$HYTALE_SERVER_ROOT/../.." && pwd)"
|
||||
DOWNLOADER="$SCRIPT_DIR/hytale-downloader-linux-amd64"
|
||||
OUTPUT_DIR="$HYTALE_SERVER_ROOT"
|
||||
DOWNLOADER="vendor/hytale-server/scripts/hytale-downloader-linux-amd64"
|
||||
OUTPUT_DIR="vendor/hytale-server"
|
||||
|
||||
if [ ! -f "$DOWNLOADER" ]; then
|
||||
echo "Error: Downloader not found at $DOWNLOADER"
|
||||
@@ -16,7 +13,6 @@ echo "[update-server] Creating output directory..."
|
||||
mkdir -p "$OUTPUT_DIR"
|
||||
|
||||
echo "[update-server] Downloading Hytale server files..."
|
||||
cd "$SCRIPT_DIR"
|
||||
"$DOWNLOADER" -download-path "$OUTPUT_DIR/game.zip"
|
||||
|
||||
echo "[update-server] Extracting server files..."
|
||||
|
||||
Reference in New Issue
Block a user