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 brew install gperf cmake openssl
git submodule update --init git submodule update --init
cd td cd td
rm -rf build #rm -rf build
mkdir build mkdir -p build
cd 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 . cmake --build .
cd ../.. cd ../..
mkdir -p build/runtimes/osx-arm64/native 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 ls -lah build/runtimes/osx-arm64/native
dotnet build dotnet build
dotnet pack nuget pack

Binary file not shown.

View file

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