• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1REM Release automation script for Windows builds.  This should be run
2REM after the Linux build has created the staging repository and
3REM selected the BoringSSL revision.  Must be run from the top-level
4REM conscrypt directory, which should be synced to the appropriate
5REM release branch.
6
7@echo off
8setlocal
9
10if "%2"=="" (
11    echo Usage: %0 ^<boringssl revision^> ^<repository ID^>
12    exit /B
13)
14
15REM TODO(flooey): The BoringSSL directory needs to be at ../boringssl
16pushd ..\boringssl
17
18if "%JAVA_HOME%"=="" (
19    for /F "usebackq delims==" %%i in (`where java`) do set JAVA_HOME=%%~dpi
20)
21set JAVA_HOME=%JAVA_HOME:\bin\=%
22
23if "%BORINGSSL_HOME%"=="" (set BORINGSSL_HOME=%cd%)
24
25git checkout master
26git pull
27git checkout %1
28
29pushd .
30call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
31popd
32cd build32
33ninja
34cd ..
35
36pushd .
37call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
38popd
39cd build64
40ninja
41
42popd
43
44call gradlew conscrypt-openjdk:build
45call gradlew conscrypt-openjdk:uploadArchives -Dorg.gradle.parallel=false -PrepositoryId=%2
46