Add Nuget packages for all dependencies

This commit is contained in:
teinarss
2020-03-01 15:24:36 +01:00
committed by atlimit8
parent cc35512472
commit e13fd693c3
29 changed files with 228 additions and 669 deletions

View File

@@ -10,8 +10,6 @@ function All-Command
return
}
Dependencies-Command
dotnet build /p:Configuration=Release /nologo
if ($lastexitcode -ne 0)
{
@@ -101,27 +99,6 @@ function Version-Command
}
}
function Dependencies-Command
{
cd thirdparty
./fetch-thirdparty-deps.ps1
cp download/*.dll ..
cp download/windows/*.dll ..
cd ..
Write-Host "Dependencies copied." -ForegroundColor Cyan
if ((CheckForDotnet) -eq 1)
{
return
}
dotnet restore /nologo
if ($lastexitcode -ne 0)
{
Write-Host "Project restoration failed." -ForegroundColor Red
}
}
function Test-Command
{
if ((CheckForUtility) -eq 1)
@@ -244,7 +221,6 @@ if ($args.Length -eq 0)
Write-Host "Command list:"
Write-Host ""
Write-Host " all, a Builds the game and its development tools."
Write-Host " dependencies, d Copies the game's dependencies into the main game folder."
Write-Host " version, v Sets the version strings for the default mods to the"
Write-Host " latest version for the current Git branch."
Write-Host " clean, c Removes all built and copied files. Use the 'all' and"
@@ -270,7 +246,6 @@ if ($command.Length -gt 1)
switch ($execute)
{
{"all", "a" -contains $_} { All-Command }
{"dependencies", "d" -contains $_} { Dependencies-Command }
{"version", "v" -contains $_} { Version-Command }
{"clean", "c" -contains $_} { Clean-Command }
{"test", "t" -contains $_} { Test-Command }