This commit is contained in:
2023-07-31 21:58:44 +03:00
parent 33aa0ef807
commit c82f8e3537
2 changed files with 3 additions and 19 deletions
-18
View File
@@ -10,27 +10,9 @@ function Write2 {
Write-Output "-----------------------------------------------"
}
function ReadParams {
Param ([string] $str1)
Get-Content -Path $str1| ForEach-Object {
$x = $_.split('=');
$params[$x[0]] = $x[1];
}
}
$publish_folder="_Published"
$params_file="params.txt"
$dotnet = $args | where { $_ -eq "dotnet" }
$spa = $args | where { $_ -eq "spa" }
$file = $args | where { ($_ -ne "dotnet" -and $_ -ne "spa") }
if ($file) {
$params_file = $file
}
ReadParams($params_file)
if ((!$dotnet) -and (!$spa)) {
$dotnet = "dotnet"