XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEWarframe

【WinUI】基于Warframe游戏本体的公开服务器以及安装器

公开
关注 0 Fork 0 Star 0
UTF-8
#requires -Version 7.0
param([string]$Root, [ValidateSet('Debug','Release')][string]$Configuration = 'Release')
$ErrorActionPreference = 'Stop'
$taskRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..'))
if (-not $Root) { $Root = Join-Path $taskRoot 'Server/runtime' }
$dll = Join-Path $taskRoot "Server/XFEWarframe.Server/bin/$Configuration/net10.0/XFEWarframe.Server.dll"
dotnet build (Join-Path $taskRoot 'Server/XFEWarframe.Server/XFEWarframe.Server.csproj') -c $Configuration --nologo -v quiet
if ($LASTEXITCODE -ne 0) { throw 'Server build failed; an old executable will not be started.' }
dotnet $dll "--root=$([IO.Path]::GetFullPath($Root))"
if ($LASTEXITCODE -ne 0) { throw "Server exited with code $LASTEXITCODE" }