diff options
| author | @syxhe <t.me/syxhe> | 2025-12-18 17:15:50 -0600 |
|---|---|---|
| committer | @syxhe <t.me/syxhe> | 2025-12-18 17:15:50 -0600 |
| commit | 59a7d9eb7c82a9a4da1275dc189ef0f5dea339a8 (patch) | |
| tree | 49249956dc5787dbe615e04f6659ce39c28839f6 | |
| parent | 4d359b475dd70dae73a452bf514564b17d3ab8fb (diff) | |
| -rw-r--r-- | BUILDING.md | 5 | ||||
| -rwxr-xr-x | build.bash | 46 | ||||
| m--------- | td | 0 |
3 files changed, 5 insertions, 46 deletions
diff --git a/BUILDING.md b/BUILDING.md new file mode 100644 index 0000000..b95127d --- /dev/null +++ b/BUILDING.md | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # BUILDING | ||
| 2 | |||
| 3 | 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` | ||
| 4 | |||
| 5 | 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 @@ | |||
| 1 | #!/usr/bin/env -vS bash | ||
| 2 | |||
| 3 | SOMEWHAT_REAL_DIR="$(realpath "$0")" | ||
| 4 | FILENAME="${SOMEWHAT_REAL_DIR##*/}" | ||
| 5 | PATH_TO="${SOMEWHAT_REAL_DIR/$FILENAME/}" | ||
| 6 | |||
| 7 | function runInLocal() { | ||
| 8 | if [[ "$(pwd)/" != "$PATH_TO" ]]; then | ||
| 9 | (cd "$PATH_TO" && bash "$FILENAME") | ||
| 10 | exit $? | ||
| 11 | fi | ||
| 12 | |||
| 13 | return 0 | ||
| 14 | } | ||
| 15 | |||
| 16 | function buildTDLIB() { | ||
| 17 | # TODO: Test to see if this works and if I want the install location to be where it is | ||
| 18 | |||
| 19 | cd td && \ | ||
| 20 | rm -rf build && \ | ||
| 21 | mkdir build && \ | ||
| 22 | cd build && \ | ||
| 23 | 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 .. && \ | ||
| 24 | cmake --build . --target install && \ | ||
| 25 | cd ../../tdjni && \ | ||
| 26 | rm -rf build && \ | ||
| 27 | mkdir build && \ | ||
| 28 | cd build && \ | ||
| 29 | 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 && \ | ||
| 30 | cmake --build . --target install && \ | ||
| 31 | cd .. && \ | ||
| 32 | ls -l tdlib | ||
| 33 | |||
| 34 | return $? | ||
| 35 | } | ||
| 36 | |||
| 37 | function buildJar() { | ||
| 38 | |||
| 39 | return 0 | ||
| 40 | } | ||
| 41 | |||
| 42 | runInLocal && \ | ||
| 43 | buildTDLIB && \ | ||
| 44 | buildJar | ||
| 45 | |||
| 46 | exit "$?" | ||
diff --git a/td b/td | |||
| Subproject 369ee922b45bfa7e8da357e4d62e93925862d86 | Subproject a9a8353d4d879242001aeef55605ce4cd930513 | ||
