Create README.md

This commit is contained in:
peter-iakovlev 2019-06-14 15:23:33 +01:00 committed by GitHub
parent 3d34ad290c
commit a1f459ab48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# Telegram iOS Source Code Compilation Guide
1. Install the brew package manager, if you havent already.
2. Install the packages pkg-config, yasm:
brew install pkg-config yasm
3. Clone the project from GitHub:
git clone --recursive https://github.com/peter-iakovlev/Telegram-iOS.git
4. Open Telegram-iOS.workspace.
5. Open the Telegram-iOS-Fork scheme.
6. Replace the contents of Config-Fork.xcconfig with
APP_NAME=Telegram Fork
APP_BUNDLE_ID=fork.telegram.Fork
APP_SPECIFIC_URL_SCHEME=tgfork
GLOBAL_CONSTANTS = APP_CONFIG_IS_INTERNAL_BUILD=false APP_CONFIG_IS_APPSTORE_BUILD=true APP_CONFIG_APPSTORE_ID=0 APP_SPECIFIC_URL_SCHEME="\"$(APP_SPECIFIC_URL_SCHEME)\""
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(GLOBAL_CONSTANTS)
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) APP_CONFIG_API_ID=8 APP_CONFIG_API_HASH="\"7245de8e747a0d6fbe11f7cc14fcc0bb\"" APP_CONFIG_HOCKEYAPP_ID="\"\""
7. Replace group ID in Telegram-iOS-Fork.entitlements with group.fork.telegram.Fork.
8. Start the compilation process.
9. To run the app on your device, you will need to set the correct values for the signature, .entitlements files and package IDs in accordance with your developer account values.