#!/bin/bash rm -rf run || true mkdir run rm -rf bin dotnet restore dotnet publish ForgeCore.csproj --nologo -c Release --self-contained true /p:PublishSingleFile=true cp bin/Release/net8.0/linux-x64/publish/ForgeCore run/ # Create the API DLL cd ForgeCoreAPI dotnet new sln -n ForgeCoreAPI dotnet sln ForgeCoreAPI.sln add ForgeCoreAPI.csproj dotnet build -c Release cp bin/Release/net8.0/ForgeCoreAPI.dll ../run/ rm ForgeCoreAPI.sln cd .. cd run chmod +x ForgeCore ./ForgeCore --version ./ForgeCore --help time ./ForgeCore --daemon