Update README

This commit is contained in:
Ali 2023-01-15 23:10:23 +04:00
parent e0b7e4087c
commit 1d6d24fff0

View File

@ -24,11 +24,13 @@ git clone --recursive -j8 https://github.com/TelegramMessenger/Telegram-iOS.git
``` ```
mkdir -p $HOME/telegram-configuration mkdir -p $HOME/telegram-configuration
cp -R build-system/example-configuration/* $HOME/telegram-configuration/ mkdir -p $HOME/telegram-provisioning
cp build-system/appstore-configuration.json $HOME/telegram-configuration/configuration.json
cp -R build-system/fake-codesigning $HOME/telegram-provisioning/
``` ```
- Modify the values in `variables.bzl` - Modify the values in `configuration.json`
- Replace the provisioning profiles in `provisioning` with valid files - Replace the provisioning profiles in `profiles` with valid files
4. (Optional) Create a build cache directory to speed up rebuilds 4. (Optional) Create a build cache directory to speed up rebuilds
@ -42,7 +44,8 @@ mkdir -p "$HOME/telegram-bazel-cache"
python3 build-system/Make/Make.py \ python3 build-system/Make/Make.py \
--cacheDir="$HOME/telegram-bazel-cache" \ --cacheDir="$HOME/telegram-bazel-cache" \
build \ build \
--configurationPath="$HOME/telegram-configuration" \ --configurationPath=path-to-configuration.json \
--codesigningInformationPath=path-to-provisioning-data \
--buildNumber=100001 \ --buildNumber=100001 \
--configuration=release_universal --configuration=release_universal
``` ```
@ -53,7 +56,8 @@ python3 build-system/Make/Make.py \
python3 build-system/Make/Make.py \ python3 build-system/Make/Make.py \
--cacheDir="$HOME/telegram-bazel-cache" \ --cacheDir="$HOME/telegram-bazel-cache" \
generateProject \ generateProject \
--configurationPath="$HOME/telegram-configuration" \ --configurationPath=path-to-configuration.json \
--codesigningInformationPath=path-to-provisioning-data \
--disableExtensions --disableExtensions
``` ```
@ -62,7 +66,8 @@ It is possible to generate a project that does not require any codesigning certi
python3 build-system/Make/Make.py \ python3 build-system/Make/Make.py \
--cacheDir="$HOME/telegram-bazel-cache" \ --cacheDir="$HOME/telegram-bazel-cache" \
generateProject \ generateProject \
--configurationPath="$HOME/telegram-configuration" \ --configurationPath=path-to-configuration.json \
--codesigningInformationPath=path-to-provisioning-data \
--disableExtensions \ --disableExtensions \
--disableProvisioningProfiles --disableProvisioningProfiles
``` ```