File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ param (
2
+ [Parameter (Mandatory = $true )][string ]$cliFolder
3
+ )
4
+
5
+ $toolsLinux64Folder = Join-Path (Join-Path (Join-Path $cliFolder " powershell" ) " tools" ) " linux64"
6
+ dotnet publish (Join-Path " $PSScriptRoot /extractor" " powershell.sln" | Resolve-Path ) - o $toolsLinux64Folder - r linux- x64
7
+ if ($LASTEXITCODE -ne 0 ) {
8
+ Write-Host " Build failed"
9
+ exit 1
10
+ }
11
+
12
+ $powershellFolder = Join-Path - Path $cliFolder - ChildPath " powershell"
13
+ Copy-Item - Path " $PSScriptRoot /codeql-extractor.yml" - Destination $powershellFolder - Force
14
+ Copy-Item - Path " $PSScriptRoot /downgrades" - Destination $powershellFolder - Recurse - Force
15
+ $qlLibFolder = Join-Path - Path " $PSScriptRoot /ql" - ChildPath " lib"
16
+ Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme" ) - Destination $powershellFolder - Force
17
+ Copy-Item - Path (Join-Path $qlLibFolder " semmlecode.powershell.dbscheme.stats" ) - Destination $powershellFolder - Force
18
+ Copy-Item - Path " $PSScriptRoot /tools" - Destination $powershellFolder - Recurse - Force
You can’t perform that action at this time.
0 commit comments