From b38a34b6673cd5a828a23b7e2e0819610e1a09d5 Mon Sep 17 00:00:00 2001 From: Jin Date: Wed, 2 Aug 2023 16:49:40 -0700 Subject: [PATCH] Update build_cli_release.ps1 to include openssl --- scripts/cli/build_cli_release.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/cli/build_cli_release.ps1 b/scripts/cli/build_cli_release.ps1 index 4e1e8aeb65179..0e9d701523686 100755 --- a/scripts/cli/build_cli_release.ps1 +++ b/scripts/cli/build_cli_release.ps1 @@ -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