From 4d04eee8f6cafe705bc7720859791aef64d518cc Mon Sep 17 00:00:00 2001 From: TheBombGamer <245092019+chillcog@users.noreply.github.com> Date: Tue, 12 May 2026 21:56:56 -0700 Subject: [PATCH] Create install.sh --- install.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..0f26b12b --- /dev/null +++ b/install.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Detect architecture and set appropriate .NET RID +ARCH=$(uname -m) +case $ARCH in + x86_64) + RID="linux-x64" + ;; + aarch64) + RID="linux-arm64" + ;; + armv7l) + RID="linux-arm" + ;; + *) + echo "Warning: Unknown architecture $ARCH, defaulting to linux-x64" + RID="linux-x64" + ;; +esac + +echo "Detected architecture: $ARCH -> Using RID: $RID" + +apt install git git-lfs wget + +git clone https://github.com/2SharkyStudios/SPT-Linux-Build.git +mkdir /home/container/SPT-Linux-Build/build/ +cd /home/container/SPT-Linux-Build/SPTarkov.Server/ + +dotnet restore +dotnet publish -c Release -r $RID --self-contained true -p:SptVersion=$VSPT + +echo "install complete" \ No newline at end of file