mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Merge tag 'v5.11.1' into dev
This commit is contained in:
+19
-2
@@ -16,6 +16,7 @@ Install [poetry](https://python-poetry.org), go to ***BuildPath*** and run
|
||||
Go to ***BuildPath*/tdesktop** and run
|
||||
|
||||
docker run --rm -it \
|
||||
-u $(id -u) \
|
||||
-v "$PWD:/usr/src/tdesktop" \
|
||||
ghcr.io/telegramdesktop/tdesktop/centos_env:latest \
|
||||
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
|
||||
@@ -25,6 +26,7 @@ Go to ***BuildPath*/tdesktop** and run
|
||||
Or, to create a debug build, run
|
||||
|
||||
docker run --rm -it \
|
||||
-u $(id -u) \
|
||||
-v "$PWD:/usr/src/tdesktop" \
|
||||
-e CONFIG=Debug \
|
||||
ghcr.io/telegramdesktop/tdesktop/centos_env:latest \
|
||||
@@ -32,8 +34,23 @@ Or, to create a debug build, run
|
||||
-D TDESKTOP_API_ID=2040 \
|
||||
-D TDESKTOP_API_HASH=b18441a1ff607e10a989891a5462e627
|
||||
|
||||
**P. S. If docker image build takes too long, cherry-pick [this](https://github.com/TDesktop-x64/tdesktop/commit/b99c084862053f441caa6525837a7e193cc671f7) commit.**
|
||||
|
||||
The built files will be in the `out` directory.
|
||||
|
||||
You can use `strip` command to reduce binary size.
|
||||
|
||||
### Visual Studio Code integration
|
||||
|
||||
Ensure you've followed the instruction up to the [**Clone source code and prepare libraries**](#clone-source-code-and-prepare-libraries) step at least.
|
||||
|
||||
Open the repository in Visual Studio Code, install the [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension and add the following to `.vscode/settings.json` (using [your **api_id** and **api_hash**](#obtain-your-api-credentials)):
|
||||
|
||||
{
|
||||
"cmake.configureSettings": {
|
||||
"TDESKTOP_API_ID": "YOUR_API_ID",
|
||||
"TDESKTOP_API_HASH": "YOUR_API_HASH"
|
||||
}
|
||||
}
|
||||
|
||||
After that, choose **Reopen in Container** via the menu triggered by the green button in bottom left corner and you're done.
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user