mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
feat: dynamically choose progen.exe location #4248
This commit is contained in:
parent
02861debee
commit
856782f1b8
12
progen.ps1
12
progen.ps1
@ -15,7 +15,7 @@ Param
|
||||
|
||||
[Parameter()]
|
||||
[ValidateSet(140, 150, 160, 170)]
|
||||
[int] $vs = 140,
|
||||
[int] $vs = 170,
|
||||
|
||||
[string] $omit,
|
||||
|
||||
@ -58,7 +58,15 @@ function Process-Input
|
||||
|
||||
function Run-Progen-Components
|
||||
{
|
||||
$progenPath = Resolve-Path "$poco_base\ProGen\bin64\static_mt\progen.exe"
|
||||
if(Test-Path "$poco_base\ProGen\bin64\static_mt\progen.exe") {
|
||||
$progenPath = Resolve-Path "$poco_base\ProGen\bin64\static_mt\progen.exe"
|
||||
}
|
||||
elseif(Test-Path "$poco_base\ProGen\bin64\static_md\progen.exe") {
|
||||
$progenPath = Resolve-Path "$poco_base\ProGen\bin64\static_md\progen.exe"
|
||||
}
|
||||
else {
|
||||
$progenPath = Resolve-Path "$poco_base\ProGen\bin64\progen.exe"
|
||||
}
|
||||
Get-Content "$poco_base\components" | Foreach-Object {
|
||||
|
||||
$component = $_
|
||||
|
Loading…
Reference in New Issue
Block a user