-
Clone this repository with submodules:
git clone https://github.com/overtake/TelegramSwift.git --recurse-submodules -
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install tools:
brew install cmake ninja openssl@1.1 zlib autoconf libtool automake yasm pkg-config -
Update ./scripts/rebuild file
replace "no" to "yes" -
Run scripts to configurate framework:
sh %project_dir%/scripts/configure_frameworks.sh -
Open
Telegram-Mac.xcworkspacein the latest Xcode. -
Setup codesign and Build!
- For starters, you need to build application.
- Change bundle Identifier and team-id. Easiest way is to search all mentions
ru.keepcoder.Telegramand change it to your own. Team-id you can find on apple developer portal. - Obtain your API ID. Note: The built-in
apiIdis highly limited for api usage. Do not use it in any circumstances except verify binaries. - Open
Telegram-Mac/Config.swiftand repalceapiIdandapiHashfrom previous step. Note: Do not forget to changeteamIdeither. - Replace or remove
SFEED_URLandAPPCENTER_SECRETin*.xcconfigfiles. (First uses for in-app updates and second for collecting crashes on appcenter) - Write new better code.
- If you still have a questions feel free to open new issue here.