Files
rk35xx-android14/external/conscrypt/release/macos
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

35 lines
856 B
Bash
Executable File

#!/bin/sh
#
# Release automation script for MacOS builds. This should be run
# after the Linux build has created the staging repository and
# selected the BoringSSL revision. Must be run from the top-level
# conscrypt directory, which should be synced to the appropriate
# release branch.
set -e
if [ -z "$2" ]; then
echo "Usage: $0 <boringssl revision> <repository ID>"
exit 1
fi
if [ -z "$JAVA_HOME" ]; then
export JAVA_HOME=$(/usr/libexec/java_home)
fi
# If BORINGSSL_HOME isn't set, assume it's located at ../boringssl
if [ -z "$BORINGSSL_HOME" ]; then
export BORINGSSL_HOME=$(cd ../boringssl; pwd -P)
fi
pushd "$BORINGSSL_HOME" >/dev/null
git checkout master
git pull
git checkout $1
cd build64
ninja
popd >/dev/null
./gradlew conscrypt-openjdk:build
./gradlew conscrypt-openjdk:publish -Dorg.gradle.parallel=false -PrepositoryId="$2"