pentest-distro-builder/filesystem/root/.vscode/extensions/ms-vscode.powershell-1.8.4/build.ps1

14 lines
463 B
PowerShell
Raw Normal View History

2018-10-17 14:11:16 -06:00
param ( [string]$target )
if ( ! (test-path ${target} ) ) {
new-item -type directory ${target}
}
else {
if ( test-path -pathtype leaf ${target} ) {
remove-item -force ${target}
new-item -type directory ${target}
}
}
push-location C:/vscode-powershell
Invoke-Build GetExtensionVersion,Clean,Build,Test,Package
Copy-Item -Verbose -Recurse "C:/vscode-powershell/PowerShell-insiders.vsix" "${target}/PowerShell-insiders.vsix"