INSTALL.md
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 [email protected] 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.xcworkspace in the latest Xcode.
Setup codesign and Build!
ru.keepcoder.Telegram and change it to your own. Team-id you can find on apple developer portal.apiId is highly limited for api usage. Do not use it in any circumstances except verify binaries.Telegram-Mac/Config.swift and repalce apiId and apiHash from previous step. Note: Do not forget to change teamId either.SFEED_URL and APPCENTER_SECRET in *.xcconfig files. (First uses for in-app updates and second for collecting crashes on appcenter)