tdlib.native.osx.arm64/build.sh

16 lines
446 B
Bash
Raw Permalink Normal View History

2023-01-14 05:46:13 +01:00
#!/bin/bash
brew install gperf cmake openssl
git submodule update --init
cd td
2023-01-14 06:01:34 +01:00
#rm -rf build
mkdir -p build
2023-01-14 05:46:13 +01:00
cd build
2023-01-14 06:01:34 +01:00
cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl/ -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
2023-01-14 05:46:13 +01:00
cmake --build .
cd ../..
mkdir -p build/runtimes/osx-arm64/native
2023-01-14 06:01:34 +01:00
cp td/build/libtdjson.*.dylib build/runtimes/osx-arm64/native/libtdjson.dylib
2023-01-14 05:46:13 +01:00
ls -lah build/runtimes/osx-arm64/native
dotnet build
2023-01-14 06:01:34 +01:00
nuget pack