Skip to content

Commit

Permalink
Indicate when bootstapper is downloading the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Qonfused committed Feb 8, 2024
1 parent da09896 commit 6e435b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ci/bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ function Bootstrap-Exe {
}

$ProgressPreference = 'Continue'
Start-Process -Wait $dest -NoNewWindow -ArgumentList $args
Remove-Item $dest
}

Write-Host "Downloading OCE Build CLI..."

$BINARY_URL="$OCEBUILD_URL/releases/download/$OCEBUILD_VERSION/ocebuild.exe"
Bootstrap-Exe -uri $BINARY_URL -dest ocebuild.exe `
$($arguments -join ' ')

Write-Host "Done.\n"

Start-Process -Wait $dest -NoNewWindow -ArgumentList $args
Remove-Item $dest
3 changes: 3 additions & 0 deletions ci/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ BINARY_PATH="./$(ext ocebuild)"
trap 'rm -f "$BINARY_PATH" 2>/dev/null' 0
trap 'exit $?' 1 2 3 15

echo "Downloading OCE Build CLI..."

# Download the binary release for the current platform
BINARY_URL="$OCEBUILD_URL/releases/download/$OCEBUILD_VERSION/$(ext ocebuild)"
$(cmd curl) -sSL -k $BINARY_URL > "$BINARY_PATH"
echo "Done.\n"

# Executes OCE Build with provided arguments
if [[ $(os) != "windows" ]]; then chmod +x "$BINARY_PATH"; fi
Expand Down

0 comments on commit 6e435b3

Please sign in to comment.