mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
stuff around tokens and also builds
This commit is contained in:
parent
366b0d575a
commit
66cc7f6f1a
13 changed files with 59 additions and 22 deletions
20
BuildTask.ps1
Normal file
20
BuildTask.ps1
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
param([String]$env='local',
|
||||
[String]$ver='3.0.0',
|
||||
[String]$basePath='')
|
||||
|
||||
"Environment: " + $env | Write-Output;
|
||||
"Build Version: " + $ver | Write-Output;
|
||||
"Base Path: " + $basePath | Write-Output;
|
||||
|
||||
$appSettingsPath = $basePath + '\src\Ombi\appsettings.json'
|
||||
$appSettings = Get-Content $appSettingsPath -raw
|
||||
$appSettings = $appSettings.Replace("{{VERSIONNUMBER}}",$ver);
|
||||
Set-Content -Path $appSettingsPath -Value $appSettings
|
||||
|
||||
$configPath = $basePath + '\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
|
Loading…
Add table
Add a link
Reference in a new issue