From 1b6d74bbbeecb14f1e9df3b0dad0a76a0c465ef7 Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Tue, 13 Jun 2017 14:20:24 +0100 Subject: [PATCH] Fixed build script --- BuildTask.ps1 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/BuildTask.ps1 b/BuildTask.ps1 index 07a07d265..e3c3a38c0 100644 --- a/BuildTask.ps1 +++ b/BuildTask.ps1 @@ -7,12 +7,5 @@ param([String]$env='local') $appSettingsPath = $env:APPVEYOR_BUILD_FOLDER + '\src\Ombi\appsettings.json' $appSettings = Get-Content $appSettingsPath -raw -$appSettings = $appSettings.Replace("{{VERSIONNUMBER}}",$ver); +$appSettings = $appSettings.Replace("{{VERSIONNUMBER}}",$env:APPVEYOR_BUILD_VERSION); Set-Content -Path $appSettingsPath -Value $appSettings - -$configPath = $env:APPVEYOR_BUILD_FOLDER + '\src\Ombi\wwwroot\app\config.ts'; -$config = Get-Content $configPath -raw - -$config = $config.Replace("{{ENVIRONMENT}}",$env); -$config | Write-Output -Set-Content -Path $configPath -Value $config \ No newline at end of file