-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathPrepareLanguageServerDebug.ps1
32 lines (27 loc) · 1.36 KB
/
PrepareLanguageServerDebug.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Gather binaries required to launch a Debug instance of LanguageServer
# This script expects that all binaries for the given configuration are already fully built
$configuration = 'EI_Debug'
$output = ".\bin\LS\$configuration"
# Clean previous output
if (!(Test-Path -PathType Container $output))
{
New-Item -ItemType Directory -Path $output
}
else
{
Get-ChildItem $output -Recurse | Remove-Item -Recurse
}
# Copy binaries from LanguageServer
Copy-Item -Path ".\TypeCobol.LanguageServer\bin\$configuration\*.exe" -Destination $output
Copy-Item -Path ".\TypeCobol.LanguageServer\bin\$configuration\*.dll" -Destination $output
Copy-Item -Path ".\TypeCobol.LanguageServer\bin\$configuration\*.runtimeconfig.json" -Destination $output
Copy-Item -Path ".\TypeCobol.LanguageServer\bin\$configuration\*.pdb" -Destination $output
# Add binaries from CLI (for TypeCobol to Cobol 85 code generation)
Copy-Item -Path ".\CLI\src\bin\$configuration\*.exe" -Destination $output
Copy-Item -Path ".\CLI\src\bin\$configuration\*.dll" -Destination $output
Copy-Item -Path ".\CLI\src\bin\$configuration\*.runtimeconfig.json" -Destination $output
Copy-Item -Path ".\CLI\src\bin\$configuration\*.pdb" -Destination $output
# DefaultCopies folder
Copy-Item -Path ".\CLI\src\bin\$configuration\DefaultCopies" -Destination $output -Recurse
# Remove unwanted items
Remove-Item -Path "$output\CSCup.*"