Skip to content

Commit dd8040f

Browse files
author
Isaac
committed
Update build system
1 parent 326fe35 commit dd8040f

File tree

6 files changed

+40
-6
lines changed

6 files changed

+40
-6
lines changed

.vscode/launch.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
"internalConsoleOptions": "openOnSessionStart",
1313
"timeout": 1000
1414
},
15+
{
16+
"name": "Restart Debug Telegram",
17+
"type": "lldb-dap",
18+
"request": "attach",
19+
"preLaunchTask": "Restart Telegram Debug",
20+
"debuggerRoot": "${workspaceFolder}",
21+
"attachCommands": [
22+
"process connect connect://localhost:6667"
23+
],
24+
"internalConsoleOptions": "openOnSessionStart",
25+
"timeout": 1000
26+
},
1527
],
1628
"options": {
1729
"console": "integratedTerminal",

.vscode/tasks.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"label": "Build Telegram",
66
"type": "shell",
7-
"command": "${workspaceFolder}/build-input/bazel-8.3.1-darwin-arm64",
7+
"command": "${workspaceFolder}/build-input/bazel-8.4.2-darwin-arm64",
88
"args": [
99
"build",
1010
"Telegram/Telegram",
@@ -74,6 +74,28 @@
7474
"reveal": "always",
7575
"panel": "dedicated"
7676
}
77+
},
78+
{
79+
"label": "Stop Telegram Debug Session",
80+
"type": "shell",
81+
"command": "pkill -f 'launch_and_debug.sh' || true; lsof -ti:6667 | xargs kill -9 2>/dev/null || true",
82+
"problemMatcher": [],
83+
"presentation": {
84+
"reveal": "silent",
85+
"close": true
86+
}
87+
},
88+
{
89+
"label": "Restart Telegram Debug",
90+
"dependsOrder": "sequence",
91+
"dependsOn": [
92+
"Stop Telegram Debug Session",
93+
"_launch_telegram"
94+
],
95+
"problemMatcher": [],
96+
"presentation": {
97+
"reveal": "always"
98+
}
7799
}
78100
]
79101
}

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@sourcekit_bazel_bsp//rules:setup_sourcekit_bsp.bzl", "setup_sourcekit_bsp
22

33
setup_sourcekit_bsp(
44
name = "setup_sourcekit_bsp_telegram_project",
5-
bazel_wrapper = "./build-input/bazel-8.3.1-darwin-arm64",
5+
bazel_wrapper = "./build-input/bazel-8.4.2-darwin-arm64",
66
files_to_watch = [
77
"**/*.swift",
88
],

MODULE.bazel.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/launch_and_debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
# Ideally we should upstream these changes back to rules_apple since they should be useful for everyone.
88

99
echo "Building..."
10-
./build-input/bazel-8.3.1-darwin-arm64 build Telegram/Telegram --announce_rc --features=swift.use_global_module_cache --verbose_failures --remote_cache_async --features=swift.skip_function_bodies_for_derived_files --jobs=16 --define=buildNumber=10000 --define=telegramVersion=12.2.1 --disk_cache=/Users/ali/telegram-bazel-cache -c dbg --ios_multi_cpus=sim_arm64 --watchos_cpus=arm64_32 --features=swift.enable_batch_mode
10+
./build-input/bazel-8.4.2-darwin-arm64 build Telegram/Telegram --announce_rc --features=swift.use_global_module_cache --verbose_failures --remote_cache_async --jobs=16 --define=buildNumber=10000 --define=telegramVersion=12.2.1 --disk_cache=/Users/ali/telegram-bazel-cache -c dbg --ios_multi_cpus=sim_arm64 --watchos_cpus=arm64_32 --features=swift.enable_batch_mode
1111
chmod -R 777 ./bazel-bin/Telegram
1212

1313
tmp_file=$(pwd)/bazel-bin/Telegram/pid.txt

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"app": "12.2.2",
33
"xcode": "26.0",
4-
"bazel": "8.3.1:0cac3a67dc5429c68272dc6944104952e9e4cf84b29d126a5ff3fbaa59045217",
4+
"bazel": "8.4.2:45e9388abf21d1107e146ea366ad080eb93cb6a5f3a4a3b048f78de0bc3faffa",
55
"macos": "26"
66
}

0 commit comments

Comments
 (0)