From 59a7d9eb7c82a9a4da1275dc189ef0f5dea339a8 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Thu, 18 Dec 2025 17:15:50 -0600 Subject: Use correct telegram client version --- BUILDING.md | 5 +++++ build.bash | 46 ---------------------------------------------- td | 2 +- 3 files changed, 6 insertions(+), 47 deletions(-) create mode 100644 BUILDING.md delete mode 100755 build.bash diff --git a/BUILDING.md b/BUILDING.md new file mode 100644 index 0000000..b95127d --- /dev/null +++ b/BUILDING.md @@ -0,0 +1,5 @@ +# BUILDING + +To build tgmapper, you first need to build the telegram client. This is in the `td` folder, and specific instructions can be found at `td/index.html` + +Then, you need to do xyz diff --git a/build.bash b/build.bash deleted file mode 100755 index 1e9572e..0000000 --- a/build.bash +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env -vS bash - -SOMEWHAT_REAL_DIR="$(realpath "$0")" -FILENAME="${SOMEWHAT_REAL_DIR##*/}" -PATH_TO="${SOMEWHAT_REAL_DIR/$FILENAME/}" - -function runInLocal() { - if [[ "$(pwd)/" != "$PATH_TO" ]]; then - (cd "$PATH_TO" && bash "$FILENAME") - exit $? - fi - - return 0 -} - -function buildTDLIB() { - # TODO: Test to see if this works and if I want the install location to be where it is - - cd td && \ - rm -rf build && \ - mkdir build && \ - cd build && \ - CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../../tdjni -DTD_ENABLE_JNI=ON .. && \ - cmake --build . --target install && \ - cd ../../tdjni && \ - rm -rf build && \ - mkdir build && \ - cd build && \ - CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DTd_DIR:PATH=$(readlink -e ../td/lib/cmake/Td) ../../td/CMakeLists.txt && \ - cmake --build . --target install && \ - cd .. && \ - ls -l tdlib - - return $? -} - -function buildJar() { - - return 0 -} - -runInLocal && \ - buildTDLIB && \ - buildJar - -exit "$?" diff --git a/td b/td index 369ee92..a9a8353 160000 --- a/td +++ b/td @@ -1 +1 @@ -Subproject commit 369ee922b45bfa7e8da357e4d62e93925862d86d +Subproject commit a9a8353d4d879242001aeef55605ce4cd930513d -- cgit v1.2.3