From 4ab74aa49e5eab48b23aa8f6bc83b348f7f95bab Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Mon, 11 Nov 2024 18:23:27 +0100 Subject: [PATCH] Installer download xBSassets.pak --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 016b14c..91c36cc 100644 --- a/install.sh +++ b/install.sh @@ -21,19 +21,30 @@ response=$(curl -s "https://api.github.com/repos/xStarbound/xStarbound/releases/ # Extract the tag name and download URL using jq tag_name=$(echo "$response" | jq -r '.tag_name') download_url=$(echo "$response" | jq -r '.assets[] | select(.name == "linux-static.tar.gz") | .browser_download_url') +assets_url=$(echo "$response" | jq -r '.assets[] | select(.name == "xSBassets.pak") | .browser_download_url') if [ -n "$download_url" ]; then echo "Downloading linux-static.tar.gz from the latest release..." curl -L "$download_url" -o /tmp/linux-static.tar.gz + echo "Downloading assets.pak from the latest release..." + curl -L "$download_url" -o /tmp/assets.pak + echo "Creating server folder" mkdir -p /starbound/server + echo "Creating assets folder" + mkdir -p /starbound/xsb-assets + echo "Extracting linux-static.tar.gz ..." tar -xzf /tmp/linux-static.tar.gz -C /starbound/server + echo "Extracting assets" + cp /tmp/assets.pak /starbound/xsb-assets/xSBassets.pak + echo "Cleaning up downloaded file..." rm /tmp/linux-static.tar.gz + rm /tmp/assets.pak echo "Download and extraction completed successfully." else