remove hard coded paths to make it easier for building in debug mode

auto copy script plugins/localization for local builds
This commit is contained in:
RaidMax
2020-08-26 09:54:56 -05:00
parent 2b3e21d4ba
commit 8a8dec8bbd
5 changed files with 33 additions and 13 deletions

View File

@ -0,0 +1,12 @@
param (
[string]$OutputDir = $(throw "-OutputDir is required.")
)
$localizations = @("en-US", "ru-RU", "es-EC", "pt-BR", "de-DE")
foreach($localization in $localizations)
{
$url = "http://api.raidmax.org:5000/localization/{0}" -f $localization
$filePath = "{0}Localization\IW4MAdmin.{1}.json" -f $OutputDir, $localization
$response = Invoke-WebRequest $url
Out-File -FilePath $filePath -InputObject $response.Content -Encoding utf8
}

View File

@ -1,3 +1,6 @@
set SolutionDir=%1
set ProjectDir=%2
set TargetDir=%3
set TargetDir=%3
echo D | xcopy "%SolutionDir%Plugins\ScriptPlugins\*.js" "%TargetDir%Plugins" /y
powershell -File "%ProjectDir%BuildScripts\DownloadTranslations.ps1" %TargetDir%