Fix build

This commit is contained in:
Laura Hausmann 2023-01-14 06:01:34 +01:00
parent 113435aaf0
commit 6b9e24206f
Signed by: zotan
GPG key ID: D044E84C5BE01605
3 changed files with 7 additions and 9 deletions

View file

@ -2,14 +2,14 @@
brew install gperf cmake openssl
git submodule update --init
cd td
rm -rf build
mkdir build
#rm -rf build
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl/ -DCMAKE_IN>
cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl/ -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
cmake --build .
cd ../..
mkdir -p build/runtimes/osx-arm64/native
mv libtdjson.dylib build/runtimes/osx-arm64/native
cp td/build/libtdjson.*.dylib build/runtimes/osx-arm64/native/libtdjson.dylib
ls -lah build/runtimes/osx-arm64/native
dotnet build
dotnet pack
nuget pack

Binary file not shown.

View file

@ -8,12 +8,10 @@
<license type="expression">BSL-1.0</license>
<projectUrl>https://github.com/ForNeVeR/tdlib.native</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>NuGet packaging for tdlib: Telegram client library.</description>
<releaseNotes>[To be replaced on release]</releaseNotes>
<copyright>Copyright 2022</copyright>
<description>NuGet packaging for tdlib: Telegram client library. Contains osx-arm64 runtime native binaries only.</description>
<tags>telegram</tags>
</metadata>
<files>
<file src="runtimes\**" target="runtimes" />
<file src="build\runtimes\**" target="runtimes" />
</files>
</package>