Skip to content

Commit

Permalink
Update build_cli_release.ps1 to include openssl (#9447)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmigo authored and xbtmatt committed Aug 13, 2023
1 parent a132822 commit c3c3e23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/cli/build_cli_release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@
$NAME="aptos-cli"
$CRATE_NAME="aptos"
$CARGO_PATH="crates\$CRATE_NAME\Cargo.toml"
$Env:VCPKG_ROOT = 'C:\vcpkg\'

# Get the version of the CLI from its Cargo.toml.
$VERSION = Get-Content $CARGO_PATH | Select-String -Pattern '^\w*version = "(\d*\.\d*.\d*)"' | % {"$($_.matches.groups[1])"}

# Install the developer tools
echo "Installing developer tools"
PowerShell -ExecutionPolicy Bypass -File scripts/windows_dev_setup.ps1

# Note: This is required to bypass openssl isssue on Windows.
echo "Installing OpenSSL"
vcpkg install openssl:x64-windows-static-md --clean-after-build

# Build the CLI.
echo "Building release $VERSION of $NAME for Windows"
cargo build -p $CRATE_NAME --profile cli
Expand Down

0 comments on commit c3c3e23

Please sign in to comment.