Skip to content

Commit

Permalink
Merge branch 'master' of github.com:overtake/TelegramSwift
Browse files Browse the repository at this point in the history
# Conflicts:
#	Telegram-Mac/MediaPlayerAudioRenderer.swift
  • Loading branch information
Mike Renoir committed Jun 22, 2023
2 parents 5c35498 + 67e4cf8 commit d2a936e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
24 changes: 17 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# How to Build Telegram for macOS

1. Clone this repository with submodules:

```sh
```
git clone https://github.com/overtake/TelegramSwift.git --recurse-submodules
```
2. ```brew install cmake ninja openssl@1.1 zlib autoconf libtool automake yasm pkg-config```
3. ```sh %project_dir%/scripts/configure_frameworks.sh```
4. Open `Telegram-Mac.xcworkspace` in the latest XCode.
5. Build.
2. Install Homebrew:
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
3. Install tools:
```
brew install cmake ninja openssl@1.1 zlib autoconf libtool automake yasm pkg-config
```
4. Run scripts to configurate framework:
```
sh %project_dir%/scripts/configure_frameworks.sh
```

5. Open `Telegram-Mac.xcworkspace` in [the latest Xcode](https://apps.apple.com/us/app/xcode/id497799835).
6. Now you can **Build**!



# If you want to develop a fork

1. Do first and second step above.
1. For starters, you need [to build application](https://github.com/overtake/TelegramSwift/blob/master/INSTALL.md#how-to-build-telegram-for-macos).
2. Change bundle Identifier and team-id. Easiest way is to search all mentions `ru.keepcoder.Telegram` and change it to your own. Team-id you can find on apple developer portal.
3. Obtain your [API ID](https://core.telegram.org/api/obtaining_api_id). **Note:** The built-in `apiId` is highly limited for api usage. **Do not use it** in any circumstances except verify binaries.
4. Open `Telegram-Mac/Config.swift` and repalce `apiId` and `apiHash` from previous step. **Note:** Do not forget to change `teamId` either.
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<div align="center">
<img src="Telegram-Mac/Assets.xcassets/AppIcon.appiconset/Default_128x128.png">
<img src="Telegram-Mac/Assets.xcassets/AppIcon.appiconset/Logo_1024.png"
width="125"
height="125">

<h2 align="center">Telegram for macOS</h2>
</div>

Expand Down

0 comments on commit d2a936e

Please sign in to comment.