Same as ps1xml files: already deployed in the wild, i.e. not source code. Allows to remove recursive copies from build scripts and rely just on CLI's behavior.
15 lines
344 B
PowerShell
15 lines
344 B
PowerShell
$BIN = "${pwd}/bin"
|
|
|
|
mkdir $BIN/Modules -ErrorAction SilentlyContinue
|
|
|
|
# Deploy PowerShell modules
|
|
cd $BIN/Modules
|
|
robocopy ../../test/Pester Pester /s /e
|
|
cd ../..
|
|
|
|
# Publish PowerShell
|
|
cd src/Microsoft.PowerShell.Linux.Host
|
|
dotnet publish --framework dnxcore50 --output $BIN
|
|
# Copy files that dotnet-publish does not currently deploy
|
|
cd ../..
|