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 3ad59e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ci/bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ 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 ' ')
Bootstrap-Exe -uri $BINARY_URL -dest ocebuild.exe

Write-Host "Done.`n"

Start-Process -Wait $dest -NoNewWindow -ArgumentList $($arguments -join ' ')
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 3ad59e0

Please sign in to comment.