File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- param ([switch ]$Verbose )
1+ param (
2+ [switch ]
3+ $Verbose ,
4+ [ValidateSet (" Debug" , " RelWithDebInfo" , " Release" )]
5+ [string ]
6+ $Config = " Release"
7+ )
28
39$root = $PSScriptRoot
410if (! $root ) {
@@ -23,7 +29,7 @@ if (! $installationPath) {
2329$opts = " "
2430$opts += " $root \build\mob.sln"
2531$opts += " -m"
26- $opts += " -p:Configuration=Release "
32+ $opts += " -p:Configuration=${Config} "
2733$opts += " -noLogo"
2834$opts += " -p:UseMultiToolTask=true"
2935$opts += " -p:EnforceProcessCountAcrossBuilds=true"
@@ -45,5 +51,5 @@ if (! $?) {
4551 exit $LastExitCode
4652}
4753
48- Copy-Item " $root \build\src\Release \mob.exe" " $root \mob.exe"
54+ Copy-Item " $root \build\src\${Config} \mob.exe" " $root \mob.exe"
4955Write-Output " run `` .\mob -d prefix/path build`` to start building"
You can’t perform that action at this time.
0 commit comments