Skip to content

Commit c632477

Browse files
authored
Create build-osx64.ps1
1 parent 5be20a0 commit c632477

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

powershell/build-osx64.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
param (
2+
[Parameter(Mandatory=$true)][string]$cliFolder
3+
)
4+
5+
$toolsOsx64Folder = Join-Path (Join-Path (Join-Path $cliFolder "powershell") "tools") "osx64"
6+
dotnet publish (Join-Path "$PSScriptRoot/extractor" "powershell.sln" | Resolve-Path) -o $toolsOsx64Folder -r osx-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

0 commit comments

Comments
 (0)