2023-11-18 02:19:02 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
function readlink() {
|
|
|
|
echo "$(cd "$(dirname "$1")"; pwd -P)"
|
|
|
|
}
|
|
|
|
root_dir="$(dirname "$(dirname "$(readlink "$0")")")"
|
|
|
|
|
|
|
|
cd $root_dir
|
|
|
|
|
2024-11-23 18:41:48 +07:00
|
|
|
if [ ! -f dist-newstyle/openssl-3.0.15/libcrypto-3-x64.dll ]; then
|
2023-11-18 02:19:02 +08:00
|
|
|
mkdir dist-newstyle 2>/dev/null || true
|
|
|
|
cd dist-newstyle
|
2024-11-22 18:38:49 +00:00
|
|
|
curl --tlsv1.2 https://www.openssl.org/source/openssl-3.0.15.tar.gz -L -o openssl.tar.gz
|
2023-11-18 02:19:02 +08:00
|
|
|
$WINDIR\\System32\\tar.exe -xvzf openssl.tar.gz
|
2024-11-22 18:38:49 +00:00
|
|
|
cd openssl-3.0.15
|
2023-11-18 02:19:02 +08:00
|
|
|
./Configure mingw64
|
|
|
|
make
|
|
|
|
cd ../../
|
|
|
|
fi
|