#!/usr/bin/env bash

# Build native components
(
    cd src/monad-native
    cmake -DCMAKE_BUILD_TYPE=Debug .
    make -j
)

# Publish PowerShell
(
    cd src/Microsoft.PowerShell.Linux.Host
    dotnet publish --framework dnxcore50 --runtime ubuntu.14.04-x64 --output ../../bin
    cp *.ps1xml *_profile.ps1 ../../bin
)

# Copy Pester
mkdir -p bin/Modules/Pester
cp -r ext-src/pester bin/Modules/Pester

# Patch
cp patches/*.dll bin/
cp patches/runtime/*.so bin/

#!/usr/bin/env bash

# Build native components
(
    cd src/monad-native
    cmake -DCMAKE_BUILD_TYPE=Debug .
    make -j
)

# Publish PowerShell
(
    cd src/Microsoft.PowerShell.Linux.Host
    dotnet publish --framework dnxcore50 --runtime ubuntu.14.04-x64 --output ../../bin
    cp *.ps1xml *_profile.ps1 ../../bin
)

# Copy Pester
mkdir -p bin/Modules/Pester
cp -r ext-src/pester/* bin/Modules/Pester

# Patch
cp patches/*.dll bin/
cp patches/runtime/*.so bin/

Fix copying of Pester module
Fix copying of Pester module
