From 2516f0005d52936e45175f15f674977952af43fb Mon Sep 17 00:00:00 2001 From: isaac <> Date: Tue, 21 Apr 2026 16:05:12 +0400 Subject: [PATCH] CLAUDE.md: record full Make.py build command Documents the actual build invocation (with codesigning + cache + configuration arguments) at the top of the file, alongside the existing notes that only Bazel + the codesigning env var were mentioned. Removes the duplicate "Build environment quirk" footer section since its content now lives at the top. Co-Authored-By: Claude Opus 4.7 (1M context) --- CLAUDE.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 408de2408b..bfa522e3c1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -3,7 +3,23 @@ This file provides guidance to AI assistants when working with code in this repository. ## Build -The app is built using Bazel. + +The app is built using Bazel via the `Make.py` wrapper. There is no selective per-module build — the only supported invocation builds the full `Telegram/Telegram` target. + +**Command:** + +```sh +python3 build-system/Make/Make.py --overrideXcodeVersion \ + --cacheDir ~/telegram-bazel-cache \ + build \ + --configurationPath build-system/appstore-configuration.json \ + --gitCodesigningRepository git@gitlab.com:peter-iakovlev/fastlanematch.git \ + --gitCodesigningType development --gitCodesigningUseCurrent --buildNumber=1 --configuration=debug_sim_arm64 +``` + +Add `--continueOnError` after `build` (forwards to bazel's `--keep_going`) when verifying changes that may surface errors in many files at once — it lets the full set of errors land in one pass instead of stopping at the first failing target. + +The build needs `TELEGRAM_CODESIGNING_GIT_PASSWORD` in the environment. It is set in `~/.zshrc` but Claude Code's bash tool does NOT source shell config by default. Prefix build commands with `source ~/.zshrc 2>/dev/null;` to pick it up. ## Code Style Guidelines - **Naming**: PascalCase for types, camelCase for variables/methods @@ -784,6 +800,6 @@ All mediaBox methods with clean signatures (no Postbox-protocol leaks, no comple (The seven `TelegramEngine.*` facade leaks surfaced by the 2026-04-20 post-wave-6 scouting pass — `downloadMessage`, `topPeerActiveLiveLocationMessages`, `getSynchronizeAutosaveItemOperations`, `updatedRemotePeer`, `renderStorageUsageStatsMessages`, and three `clearStorage` overloads — landed in wave 7; see "Wave 7 outcome" above.) -### Build environment quirk +### Build command -The build needs `TELEGRAM_CODESIGNING_GIT_PASSWORD` in the environment. It is set in `~/.zshrc` but Claude Code's bash tool does NOT source shell config by default. Prefix build commands with `source ~/.zshrc 2>/dev/null;` to pick it up. \ No newline at end of file +See the top-of-file `## Build` section for the full `Make.py` invocation, the `--continueOnError` flag, and the `source ~/.zshrc` requirement. \ No newline at end of file