#!/bin/bash
brew install gperf cmake openssl
git submodule update --init
cd td
rm -rf build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl/ -DCMAKE_IN>
cmake --build .
cd ../..
mkdir -p build/runtimes/osx-arm64/native
mv libtdjson.dylib build/runtimes/osx-arm64/native
ls -lah build/runtimes/osx-arm64/native
dotnet build
dotnet pack
