Skip to content

Commit b24e7d8

Browse files
committed
validator/shimexe: Add -Fast Switch to build scripts
1 parent 7f2534d commit b24e7d8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
Param([Switch]$Fast)
12
Push-Location $psscriptroot
23
. "$psscriptroot\..\..\lib\install.ps1"
34

4-
Write-Host "Install dependencies ..."
5-
Invoke-Expression "$psscriptroot\install.ps1"
5+
if(!$Fast) {
6+
Write-Host "Install dependencies ..."
7+
Invoke-Expression "$psscriptroot\install.ps1"
8+
}
69

710
$output = "$psscriptroot\bin"
8-
Get-ChildItem "$psscriptroot\packages\Newtonsoft.*\lib\net45\*.dll" -File | ForEach-Object { Copy-Item $_ $output }
11+
if(!$Fast) {
12+
Get-ChildItem "$psscriptroot\packages\Newtonsoft.*\lib\net45\*.dll" -File | ForEach-Object { Copy-Item $_ $output }
13+
}
914
Write-Output 'Compiling Scoop.Validator.cs ...'
1015
& "$psscriptroot\packages\Microsoft.Net.Compilers\tools\csc.exe" /deterministic /platform:anycpu /nologo /optimize /target:library /reference:"$output\Newtonsoft.Json.dll","$output\Newtonsoft.Json.Schema.dll" /out:"$output\Scoop.Validator.dll" Scoop.Validator.cs
1116
Write-Output 'Compiling validator.cs ...'

0 commit comments

Comments
 (0)