mirror of
https://github.com/enso-org/enso.git
synced 2024-08-17 08:50:52 +03:00
17 lines
648 B
PowerShell
17 lines
648 B
PowerShell
# Build script driver for the PowerShell.
|
|
#
|
|
# Having it in addition to CMD script allows better experience in some cases,
|
|
# like interrupting the build with Ctrl+C.
|
|
#
|
|
# This was developed and tested on Windows only, though there is no reason
|
|
# why it should not work on other platforms through PowerShell Core.
|
|
|
|
$RunArgs = @("run", "--profile", "buildscript", "--package", "enso-build-cli", "--")
|
|
$RunArgs += $args
|
|
|
|
$psi = New-Object -TypeName System.Diagnostics.ProcessStartInfo -ArgumentList "cargo",$RunArgs
|
|
$psi.WorkingDirectory = $PSScriptRoot
|
|
$handle = [System.Diagnostics.Process]::Start($psi)
|
|
$handle.WaitForExit()
|
|
Exit $handle.ExitCode
|