diff --git a/scripts/build.alpine.release.sh b/scripts/build.alpine.release.sh index 33a18c5..a3f32d6 100644 --- a/scripts/build.alpine.release.sh +++ b/scripts/build.alpine.release.sh @@ -7,11 +7,11 @@ apk add openssl-dev openssl-libs-static curl curl-dev curl-static nghttp2-static git clone https://github.com/jbeder/yaml-cpp cd yaml-cpp cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null -make install -j2 > /dev/null +make install -j4 > /dev/null cd .. cmake . -make -j2 +make -j4 rm subconverter g++ -o base/subconverter CMakeFiles/subconverter.dir/src/*.o -static -lpcre2-8 -levent -lyaml-cpp -lcurl -lnghttp2 -lssl -lcrypto -lz -lbz2 -ldl -lpthread -O3 -s diff --git a/scripts/build.macos.release.sh b/scripts/build.macos.release.sh index 2f76414..96eb07c 100644 --- a/scripts/build.macos.release.sh +++ b/scripts/build.macos.release.sh @@ -1,7 +1,7 @@ #!/bin/bash set -xe -brew reinstall yaml-cpp rapidjson libevent zlib pcre2 bzip2 pkgconfig +brew reinstall rapidjson libevent zlib pcre2 bzip2 pkgconfig git clone https://github.com/curl/curl cd curl @@ -11,7 +11,14 @@ cmake -DHTTP_ONLY=ON -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DOPENSSL_ROOT_ make -j8 > /dev/null cd .. +git clone https://github.com/jbeder/yaml-cpp +cd yaml-cpp +cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null +make -j8 > /dev/null +cd .. + cp curl/lib/libcurl.a . +cp yaml-cpp/libyaml-cpp.a . cp /usr/local/lib/libevent.a . cp /usr/local/opt/zlib/lib/libz.a . cp /usr/local/opt/openssl@1.1/lib/libssl.a .