Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Gitter chat badge to README.md #1

Open
wants to merge 166 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
42d9537
Resolving a bug #1247 (Sending files to channels)
Dec 13, 2015
76ca0ac
Merge pull request #1388 from heejune/dev
john-preston Dec 13, 2015
4ee52af
Fix a build error when TDESKTOP_DISABLE_AUTOUPDATE preprocessor defined
heejune Dec 18, 2015
b9bed41
Merge pull request #1394 from heejune/dev
john-preston Dec 22, 2015
f6eae71
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Jan 11, 2016
f3e5605
merged with master
john-preston Jan 11, 2016
58777db
moved almost all Application to AppClass (autoupdate and singleinstan…
john-preston Jan 11, 2016
d2f3fbe
mentions regexp start with one letter instead of three
john-preston Jan 16, 2016
5f84567
initial logging improved, debug logs disabled for -many instance param
john-preston Jan 17, 2016
d672353
fixed single instance checking
john-preston Jan 17, 2016
0f4405d
backtrace output for win platform added, testing with abort() call in…
john-preston Jan 21, 2016
c8d7d23
windows backtrace logging done, showing error when cant start telegra…
john-preston Jan 25, 2016
a677f78
up to 64 realtime combinated interfaces
john-preston Jan 25, 2016
07c81db
removed interfaces pointer by default from BasicInterface
john-preston Jan 26, 2016
62c28cb
fixed possible crash in History::addOlderSlice
john-preston Jan 26, 2016
8eef239
crash catch + report added for Windows version
john-preston Jan 30, 2016
3402463
crash report and show done for os x
john-preston Jan 30, 2016
52c29ba
started crash reporting for linux
john-preston Jan 30, 2016
12716a8
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Jan 30, 2016
d28483f
windows and os x crash reports sent and shown
john-preston Jan 30, 2016
b0681bc
crash reports done in linux
john-preston Jan 30, 2016
74248b0
improved os x crash reports, possible linux (and windows) broken
john-preston Jan 31, 2016
4fc0b43
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Jan 31, 2016
17a319f
improved crash reports for linux
john-preston Jan 31, 2016
fb4ee55
removed unused headers in mac
john-preston Jan 31, 2016
dd26de7
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Jan 31, 2016
a0d171b
moved minizip to ThirdParty, added google breakpad to ThirdParty for …
john-preston Jan 31, 2016
56fa8a0
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Jan 31, 2016
daa0adf
added breakpad support for os x
john-preston Feb 1, 2016
b1f267e
added breakpad for linux
john-preston Feb 1, 2016
fa2767c
always writing tdata/working stacktrace when breakpad catches a crash
john-preston Feb 1, 2016
9f7b92e
improved minidump choosing when sending crash report
john-preston Feb 1, 2016
44c1206
fixed crash reports for windows
john-preston Feb 1, 2016
5940ae6
google crashpad added to os x version
john-preston Feb 2, 2016
3e13626
conflicts fixed
john-preston Feb 2, 2016
f7f041f
instructions updated for zlib
john-preston Feb 2, 2016
02961ec
added mini_chromium patch for 10.6 and 10.8 os x google crashpad build
john-preston Feb 2, 2016
9d2b83c
fixed release build for win
john-preston Feb 2, 2016
b536c07
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 2, 2016
ab00a03
added crashing in settings
john-preston Feb 2, 2016
837432a
fixed connection on app state change
john-preston Feb 3, 2016
fd0a119
langs updated, build scripts updated
john-preston Feb 4, 2016
d9b09e7
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 4, 2016
952f24e
beta version 9019001 with new crash tracking
john-preston Feb 4, 2016
91e1330
improved breakpad appstore patch
john-preston Feb 4, 2016
f3a4b54
fixed bugs in crash dump finding and in beta version
john-preston Feb 4, 2016
cec7ebc
fixed build script, 0.9.19.1 version in .rc
john-preston Feb 5, 2016
3e30a11
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 5, 2016
6e8fc37
using libs for google breakpad on windows
john-preston Feb 5, 2016
759ede3
fixed linux launch with static linking
john-preston Feb 5, 2016
2b8ef0e
fixed linux build for 9019001 beta
john-preston Feb 5, 2016
c240295
retina settings fixed for os x tray icon
john-preston Feb 5, 2016
db9f47c
fixed version in crash reporting for betas, fixed global app event fi…
john-preston Feb 5, 2016
dd0c79e
qt patch updated, os x tray icon fixed
john-preston Feb 7, 2016
980b50f
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 7, 2016
0b4ddb0
max history width limited, custom tooltips replace QToolTip, keys wit…
john-preston Feb 7, 2016
0ede067
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 7, 2016
47ead03
moved Interfaces to types.h, tooltip hiding fixed
john-preston Feb 7, 2016
520d82b
beta version 9019002
john-preston Feb 7, 2016
b3da86b
closing logs and working file before relaunching Telegram
john-preston Feb 8, 2016
0b8523d
added year 2016 to copyright
john-preston Feb 8, 2016
5320285
added google breakpad/crashpad to build instructions
john-preston Feb 8, 2016
80ba025
some namespaces reorganized, author photo display added to wide mode …
john-preston Feb 8, 2016
d6f549f
no lag in changing normal to wide adaptive mode, files overview ext d…
john-preston Feb 8, 2016
3336b26
improved build for linux, 0.9.20.dev version
john-preston Feb 8, 2016
839078d
Merge branch 'dev'
john-preston Feb 8, 2016
001f2e1
moved from utf8 to QFile::encode/decodeName
john-preston Feb 9, 2016
7b855a6
new wide layout, build script and some bugs fixed
john-preston Feb 9, 2016
19d395a
0.9.21 dev version - fix unicode paths to working file + new layout f…
john-preston Feb 9, 2016
ffa588b
crash fix
john-preston Feb 10, 2016
f2c45df
hiding, not destroying window on close on OS X, fixed app event filter
john-preston Feb 10, 2016
189d0e8
voice messages moved to documents with waveforms
john-preston Feb 12, 2016
3579276
videos rendered like files, fixed history loading
john-preston Feb 12, 2016
2e60f23
icons fixed for megagroups in username search results and notifications
john-preston Feb 12, 2016
a439fc3
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 13, 2016
759e062
sending only reports with dumps, report tag added
john-preston Feb 13, 2016
f5dd8f8
fixed webpage preview layout, switched to abridged version of the tcp…
john-preston Feb 13, 2016
e492b1e
some crashes fixed
john-preston Feb 14, 2016
3281b81
using new privacy settings (error display), crash reports collecting …
john-preston Feb 14, 2016
f83644c
Merge branch 'dev'
john-preston Feb 14, 2016
0154be5
fixed errors for 0.9.22 dev version
john-preston Feb 14, 2016
bbc804b
added numeric header, v 0.9.22 dev
john-preston Feb 14, 2016
01c26ce
three crashes fixed
john-preston Feb 15, 2016
517358c
clearing media autodownload settings on logout, fixed history clearing
john-preston Feb 15, 2016
bb30b71
0.9.23 dev version, convertScale() added to inline result thumbs in s…
john-preston Feb 15, 2016
4081af1
words selection fixed, wide mode starts from 720px conversation width…
john-preston Feb 15, 2016
ebd77ba
re-fixed crash in ffmpeg, 0.9.23 dev
john-preston Feb 15, 2016
71e544e
added user tag for reports, fixed couple of compile warnings in gcc
john-preston Feb 15, 2016
a5b466e
link clicks and popup menu items activated async, some crashes fixed
john-preston Feb 16, 2016
d178b84
langs updated
john-preston Feb 16, 2016
74576c3
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 16, 2016
a597ded
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop …
john-preston Feb 16, 2016
8045549
a couple of crashes fixed, version 0.9.24 stable
john-preston Feb 16, 2016
6a299e3
fixed metatypes declaration for 0.9.24 version
john-preston Feb 16, 2016
7433cea
fixed copy selected text, post author display added, post links handl…
john-preston Feb 17, 2016
57b771c
some possible crashes fixed, showing maps app on os x
john-preston Feb 17, 2016
803d1a4
scheme updated, config vars moved to Global namespace
john-preston Feb 18, 2016
c3845ea
moved forwarded to an interface, testing required
john-preston Feb 18, 2016
6d42350
forwarded display improved
john-preston Feb 19, 2016
29fefbc
post edit started, sign messages checkbox added in channel edit by cr…
john-preston Feb 21, 2016
9fec887
langs updated, link click async in overviewwidget
john-preston Feb 21, 2016
fb0f297
fixed some possible crashes, fixed copy selected text to clipboard
john-preston Feb 21, 2016
fc9d75b
adaptive layout checkbox added to settings
john-preston Feb 21, 2016
23a8090
static linked openssl in Qt, gobject dynamic linked, moved gtk/appind…
john-preston Feb 21, 2016
533452a
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 21, 2016
90d104c
version 0.9.25 dev
john-preston Feb 21, 2016
4716c25
build script for linux32 fixed, 0.9.25 dev
john-preston Feb 21, 2016
978c7c8
merged with master
john-preston Feb 21, 2016
6405876
Document how to build via qmake
Feb 19, 2016
0315568
Link to qmake documentation in the README
Feb 19, 2016
3546fe4
Move all build documentation into /doc
Feb 19, 2016
841daa2
Deduplicate links to build instructions
Feb 19, 2016
7de5e24
adaptive layout starts after 1366px window, langs updated, hiding too…
john-preston Feb 22, 2016
438404e
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 22, 2016
a7b9fd2
version 0.9.26
john-preston Feb 22, 2016
9b141c4
Merge pull request #1647 from hobarrera/build-docs
john-preston Feb 22, 2016
4dcd9dd
merged with master
john-preston Feb 22, 2016
2a0a3b5
tooltip showing only in active window
john-preston Feb 22, 2016
46e562c
Update qmake for v0.9.26
auchri Feb 22, 2016
3097fb0
Merge pull request #1672 from telegramdesktop/auchri-patch-1
john-preston Feb 22, 2016
aebe15a
Fix last commit (Update qmake for v0.9.26)
auchri Feb 22, 2016
0ffc2ce
applying flags from dcOptions
john-preston Feb 23, 2016
9c8ae7f
improved media caption edit in box, need to make post edit in message…
john-preston Feb 23, 2016
4ec5791
beta 9026001 message/post edit done
john-preston Feb 25, 2016
0a9ec55
fixed gif start bug on retina displays, langs updated
john-preston Feb 25, 2016
3f1a3d8
Merge branch 'master' into dev
john-preston Feb 25, 2016
fe71cb9
build without resource recompile added in os x
john-preston Feb 25, 2016
1313cd1
lang updated
john-preston Feb 25, 2016
2b6e30b
silent broadcast done
john-preston Feb 25, 2016
37309a9
fixed media_only dcs, added copy post link to clipboard, fixed signat…
john-preston Feb 25, 2016
08153c9
langs updated, 0.9.27 dev version
john-preston Feb 25, 2016
610b0d3
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 25, 2016
16255f1
fixed os x build 0.9.27 dev version
john-preston Feb 25, 2016
3998183
mention links bug fixed, 0.9.27 dev version
john-preston Feb 25, 2016
1bd986d
added any profile photo delete, fixed profile photo upload
john-preston Feb 26, 2016
027c6fb
langs updated
john-preston Feb 26, 2016
6fae60b
fixed conversations list update on message edit
john-preston Feb 26, 2016
afeab54
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
john-preston Feb 26, 2016
ade6b5a
version 0.9.28
john-preston Feb 26, 2016
f696263
limits for caption and description updated
john-preston Feb 26, 2016
9d9b4b8
improved build script, popupmenu separator adding
john-preston Feb 26, 2016
77481b7
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 26, 2016
12f3bb2
build script fixed for appstore version
john-preston Feb 26, 2016
9eee689
Rebase instead of merge
auchri Feb 26, 2016
a385c63
Fix link in CONTRIBUTING.md
auchri Feb 24, 2016
175968c
active muted unread count uses different color
john-preston Feb 27, 2016
20881c5
Merge pull request #1696 from telegramdesktop/auchri-patch-2
john-preston Feb 27, 2016
06d675d
Merge pull request #1683 from telegramdesktop/auchri-patch-1
john-preston Feb 27, 2016
a88b676
global shortcuts with loading from .json map
john-preston Feb 27, 2016
d80f44d
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 27, 2016
bfa8075
added shortcuts module to git
john-preston Feb 27, 2016
bb51804
shortcuts added for mac os x
john-preston Feb 27, 2016
26ffbbc
divided shortcuts file to default and custom
john-preston Feb 28, 2016
7338c3e
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
john-preston Feb 28, 2016
798f800
History::dialogs and Histories::unread are private now, counting only…
john-preston Feb 28, 2016
b678913
improved rpcClear() when deleting a complex RPCSender, clearing recen…
john-preston Feb 28, 2016
5b345cb
some asserts added to imagePix()
john-preston Feb 28, 2016
0e49c13
rpcClear for mediaview, ImageLink changed to Location
john-preston Feb 28, 2016
fcd713b
beta 9028001
john-preston Feb 28, 2016
0807234
fixed crash in next/previous_chat(), MTP::dld/upl -> functions, downl…
john-preston Feb 29, 2016
99b52d4
all deinit moved to Application::aboutToQuit(), mtproto connection th…
john-preston Feb 29, 2016
616354b
improved for old version of Qt
john-preston Feb 29, 2016
32322c4
fixed some warnings, added debug logs before thread wait calls
john-preston Mar 1, 2016
ebfeeb6
dev version 0.9.29
john-preston Mar 1, 2016
cde264e
fixed crash in mtpFileLoader delayed destroy, finishing breakpad at t…
john-preston Mar 1, 2016
4d3762c
Add Gitter badge
gitter-badger Dec 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ For more info, see [GitHub Help][help_change_commit_message].

## Build instructions

* [Visual Studio 2013][msvc]
* [XCode 6.4][xcode]
* [XCode 6.4 for OS X 10.6 and 10.7][xcode_old]
* [Qt Creator 3.2.0 Ubuntu][qtcreator]
See the [README.md](README.md#build-instructions) for details on the various build
environments.

## Pull upstream changes into your fork regularly

Expand All @@ -91,9 +89,13 @@ Check the log to be sure that you actually want the changes, before merging:

git log upstream/master

Then merge the changes that you fetched:
Then rebase your changes on the latest commits in the `master` branch:

git merge upstream/master
git rebase upstream/master

After that, you have to force push your commits:

git push --force

For more info, see [GitHub Help][help_fork_repo].

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# [Telegram Desktop][telegram_desktop] – Official Messenger

[![Join the chat at https://gitter.im/tdesktop/Lobby](https://badges.gitter.im/tdesktop/Lobby.svg)](https://gitter.im/tdesktop/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This is the complete source code and the build instructions for the alpha version of the official desktop client for the [Telegram][telegram] messenger, based on the [Telegram API][telegram_api] and the [MTProto][telegram_proto] secure protocol.

The source code is published under GPLv3 with OpenSSL exception, the license is available [here][license].
Expand Down
30 changes: 26 additions & 4 deletions Telegram/Build.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo OFF
setlocal

FOR /F "tokens=1,2* delims= " %%i in (Version) do set "%%i=%%j"

Expand Down Expand Up @@ -29,6 +30,8 @@ set "HomePath=..\..\Telegram"
set "ReleasePath=..\Win32\Deploy"
set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
set "SignPath=..\..\TelegramPrivate\Sign.bat"
set "BinaryName=Telegram"
set "DropboxSymbolsPath=Z:\Dropbox\Telegram\symbols"

if %BetaVersion% neq 0 (
if exist %DeployPath%\ (
Expand Down Expand Up @@ -71,9 +74,13 @@ echo .
echo Version %AppVersionStrFull% build successfull. Preparing..
echo .

echo Dumping debug symbols..
call ..\..\Libraries\breakpad\src\tools\windows\binaries\dump_syms.exe %ReleasePath%\%BinaryName%.pdb > %ReleasePath%\%BinaryName%.sym
echo Done!

set "PATH=%PATH%;C:\Program Files\7-Zip;C:\Program Files (x86)\Inno Setup 5"

call %SignPath% %ReleasePath%\Telegram.exe
call %SignPath% %ReleasePath%\%BinaryName%.exe
if %errorlevel% neq 0 goto error

call %SignPath% %ReleasePath%\Updater.exe
Expand All @@ -90,7 +97,7 @@ if %BetaVersion% equ 0 (
)

cd %ReleasePath%
call Packer.exe -version %VersionForPacker% -path Telegram.exe -path Updater.exe %DevParam%
call Packer.exe -version %VersionForPacker% -path %BinaryName%.exe -path Updater.exe %DevParam%
cd %HomePath%
if %errorlevel% neq 0 goto error

Expand All @@ -109,6 +116,21 @@ if %BetaVersion% neq 0 (
set "PortableFile=tbeta%BetaVersion%_%BetaSignature%.zip"
)

for /f ^"usebackq^ eol^=^

^ delims^=^" %%a in (%ReleasePath%\%BinaryName%.sym) do (
set "SymbolsHashLine=%%a"
goto symbolslinedone
)
:symbolslinedone
FOR /F "tokens=1,2,3,4* delims= " %%i in ("%SymbolsHashLine%") do set "SymbolsHash=%%l"

echo Copying %BinaryName%.sym to %DropboxSymbolsPath%\%BinaryName%.pdb\%SymbolsHash%
if not exist %DropboxSymbolsPath%\%BinaryName%.pdb mkdir %DropboxSymbolsPath%\%BinaryName%.pdb
if not exist %DropboxSymbolsPath%\%BinaryName%.pdb\%SymbolsHash% mkdir %DropboxSymbolsPath%\%BinaryName%.pdb\%SymbolsHash%
xcopy %ReleasePath%\%BinaryName%.sym %DropboxSymbolsPath%\%BinaryName%.pdb\%SymbolsHash%\
echo Done!

if not exist %ReleasePath%\deploy mkdir %ReleasePath%\deploy
if not exist %ReleasePath%\deploy\%AppVersionStrMajor% mkdir %ReleasePath%\deploy\%AppVersionStrMajor%
mkdir %DeployPath%
Expand Down Expand Up @@ -144,7 +166,7 @@ if not exist %DeployPath%\%PortableFile% goto error
if %BetaVersion% equ 0 (
if not exist %DeployPath%\%SetupFile% goto error
)
if not exist %DeployPath%\Telegram.pdb goto error
if not exist %DeployPath%\%BinaryName%.pdb goto error
if not exist %DeployPath%\Updater.exe goto error
if not exist %DeployPath%\Updater.pdb goto error
if not exist %FinalReleasePath%\%AppVersionStrMajor% mkdir %FinalReleasePath%\%AppVersionStrMajor%
Expand All @@ -157,7 +179,7 @@ if %BetaVersion% equ 0 (
) else (
xcopy %DeployPath%\%BetaKeyFile% %FinalDeployPath%\ /Y
)
xcopy %DeployPath%\Telegram.pdb %FinalDeployPath%\
xcopy %DeployPath%\%BinaryName%.pdb %FinalDeployPath%\
xcopy %DeployPath%\Updater.exe %FinalDeployPath%\
xcopy %DeployPath%\Updater.pdb %FinalDeployPath%\

Expand Down
84 changes: 69 additions & 15 deletions Telegram/Build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set -e

FastParam="$1"

while IFS='' read -r line || [[ -n "$line" ]]; do
set $line
eval $1="$2"
Expand Down Expand Up @@ -37,13 +39,15 @@ if [ "$BuildTarget" == "linux" ]; then
WorkPath="./../Linux"
FixScript="$HomePath/FixMake.sh"
ReleasePath="./../Linux/Release"
BinaryName="Telegram"
elif [ "$BuildTarget" == "linux32" ]; then
echo "Building version $AppVersionStrFull for Linux 32bit.."
UpdateFile="tlinux32upd$AppVersion"
SetupFile="tsetup32.$AppVersionStrFull.tar.xz"
WorkPath="./../Linux"
FixScript="$HomePath/FixMake32.sh"
ReleasePath="./../Linux/Release"
BinaryName="Telegram"
elif [ "$BuildTarget" == "mac" ]; then
echo "Building version $AppVersionStrFull for OS X 10.8+.."
UpdateFile="tmacupd$AppVersion"
Expand Down Expand Up @@ -104,22 +108,25 @@ fi
#fi

if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then

DropboxSymbolsPath="/media/psf/Home/Dropbox/Telegram/symbols"

mkdir -p "$WorkPath/ReleaseIntermediateUpdater"
cd "$WorkPath/ReleaseIntermediateUpdater"
/usr/local/Qt-5.5.1/bin/qmake "$HomePath/Updater.pro"
/usr/local/Qt-5.5.1/bin/qmake "$HomePath/Updater.pro" -r -spec linux-g++
make
echo "Updater build complete!"
cd "$HomePath"

mkdir -p "$WorkPath/ReleaseIntermediate"
cd "$WorkPath/ReleaseIntermediate"
/usr/local/Qt-5.5.1/bin/qmake "$HomePath/Telegram.pro"
/usr/local/Qt-5.5.1/bin/qmake "$HomePath/Telegram.pro" -r -spec linux-g++
eval "$FixScript"
make
echo "Telegram build complete!"
echo "$BinaryName build complete!"
cd "$HomePath"
if [ ! -f "$ReleasePath/Telegram" ]; then
echo "Telegram not found!"
if [ ! -f "$ReleasePath/$BinaryName" ]; then
echo "$BinaryName not found!"
exit 1
fi

Expand All @@ -128,8 +135,16 @@ if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then
exit 1
fi

echo "Dumping debug symbols.."
"./../../Libraries/breakpad/src/tools/linux/dump_syms/dump_syms" "$ReleasePath/$BinaryName" > "$ReleasePath/$BinaryName.sym"
echo "Done!"

echo "Stripping the executable.."
strip -s "$ReleasePath/$BinaryName"
echo "Done!"

echo "Preparing version $AppVersionStrFull, executing Packer.."
cd "$ReleasePath" && "./Packer" -path Telegram -path Updater -version $VersionForPacker $DevParam && cd "$HomePath"
cd "$ReleasePath" && "./Packer" -path "$BinaryName" -path Updater -version $VersionForPacker $DevParam && cd "$HomePath"
echo "Packer done!"

if [ "$BetaVersion" != "0" ]; then
Expand All @@ -146,6 +161,12 @@ if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then
SetupFile="tbeta${BetaVersion}_${BetaSignature}.tar.xz"
fi

SymbolsHash=`head -n 1 "$ReleasePath/$BinaryName.sym" | awk -F " " 'END {print $4}'`
echo "Copying $BinaryName.sym to $DropboxSymbolsPath/$BinaryName/$SymbolsHash"
mkdir -p "$DropboxSymbolsPath/$BinaryName/$SymbolsHash"
cp "$ReleasePath/$BinaryName.sym" "$DropboxSymbolsPath/$BinaryName/$SymbolsHash/"
echo "Done!"

if [ ! -d "$ReleasePath/deploy" ]; then
mkdir "$ReleasePath/deploy"
fi
Expand All @@ -154,21 +175,25 @@ if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then
mkdir "$ReleasePath/deploy/$AppVersionStrMajor"
fi

echo "Copying Telegram, Updater and $UpdateFile to deploy/$AppVersionStrMajor/$AppVersionStrFull..";
echo "Copying $BinaryName, Updater and $UpdateFile to deploy/$AppVersionStrMajor/$AppVersionStrFull..";
mkdir "$DeployPath"
mkdir "$DeployPath/Telegram"
mv "$ReleasePath/Telegram" "$DeployPath/Telegram/"
mv "$ReleasePath/Updater" "$DeployPath/Telegram/"
mkdir "$DeployPath/$BinaryName"
mv "$ReleasePath/$BinaryName" "$DeployPath/$BinaryName/"
mv "$ReleasePath/Updater" "$DeployPath/$BinaryName/"
mv "$ReleasePath/$UpdateFile" "$DeployPath/"
if [ "$BetaVersion" != "0" ]; then
mv "$ReleasePath/$BetaKeyFile" "$DeployPath/"
fi
cd "$DeployPath" && tar -cJvf "$SetupFile" "Telegram/" && cd "./../../../$HomePath"
cd "$DeployPath" && tar -cJvf "$SetupFile" "$BinaryName/" && cd "./../../../$HomePath"
fi

if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarget" == "macstore" ]; then

touch "./SourceFiles/telegram.qrc"
DropboxSymbolsPath="./../../../Dropbox/Telegram/symbols"

if [ "$FastParam" != "fast" ]; then
touch "./SourceFiles/telegram.qrc"
fi
xcodebuild -project Telegram.xcodeproj -alltargets -configuration Release build

if [ ! -d "$ReleasePath/$BinaryName.app" ]; then
Expand All @@ -181,6 +206,28 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarg
exit 1
fi

if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ]; then
echo "Removing Updater debug symbols.."
rm -rf "$ReleasePath/$BinaryName.app/Contents/Frameworks/Updater.dSYM"
echo "Done!"
fi

echo "Dumping debug symbols.."
"./../../Libraries/breakpad/src/tools/mac/dump_syms/build/Release/dump_syms" "$ReleasePath/$BinaryName.app.dSYM" > "$ReleasePath/$BinaryName.sym" 2>/dev/null
echo "Done!"

echo "Stripping the executable.."
strip "$ReleasePath/$BinaryName.app/Contents/MacOS/$BinaryName"
echo "Done!"

echo "Signing the application.."
if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ]; then
codesign --force --deep --sign "Developer ID Application: John Preston" "$ReleasePath/$BinaryName.app"
elif [ "$BuildTarget" == "macstore" ]; then
codesign --force --deep --sign "3rd Party Mac Developer Application: TELEGRAM MESSENGER LLP (6N38VWS5BX)" "$ReleasePath/$BinaryName.app" --entitlements "Telegram/Telegram Desktop.entitlements"
fi
echo "Done!"

AppUUID=`dwarfdump -u "$ReleasePath/$BinaryName.app/Contents/MacOS/$BinaryName" | awk -F " " '{print $2}'`
DsymUUID=`dwarfdump -u "$ReleasePath/$BinaryName.app.dSYM" | awk -F " " '{print $2}'`
if [ "$AppUUID" != "$DsymUUID" ]; then
Expand Down Expand Up @@ -215,6 +262,12 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarg
fi
fi

SymbolsHash=`head -n 1 "$ReleasePath/$BinaryName.sym" | awk -F " " 'END {print $4}'`
echo "Copying $BinaryName.sym to $DropboxSymbolsPath/$BinaryName/$SymbolsHash"
mkdir -p "$DropboxSymbolsPath/$BinaryName/$SymbolsHash"
cp "$ReleasePath/$BinaryName.sym" "$DropboxSymbolsPath/$BinaryName/$SymbolsHash/"
echo "Done!"

if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ]; then
if [ "$BetaVersion" == "0" ]; then
cd "$ReleasePath"
Expand Down Expand Up @@ -254,10 +307,10 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarg
if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ]; then
echo "Copying $BinaryName.app and $UpdateFile to deploy/$AppVersionStrMajor/$AppVersionStr..";
mkdir "$DeployPath"
mkdir "$DeployPath/Telegram"
cp -r "$ReleasePath/$BinaryName.app" "$DeployPath/Telegram/"
mkdir "$DeployPath/$BinaryName"
cp -r "$ReleasePath/$BinaryName.app" "$DeployPath/$BinaryName/"
if [ "$BetaVersion" != "0" ]; then
cd "$DeployPath" && zip -r "$SetupFile" "Telegram" && mv "$SetupFile" "./../../../" && cd "./../../../$HomePath"
cd "$DeployPath" && zip -r "$SetupFile" "$BinaryName" && mv "$SetupFile" "./../../../" && cd "./../../../$HomePath"
mv "$ReleasePath/$BetaKeyFile" "$DeployPath/"
fi
mv "$ReleasePath/$BinaryName.app.dSYM" "$DeployPath/"
Expand Down Expand Up @@ -294,6 +347,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarg
rm "$ReleasePath/$BinaryName.app/Contents/MacOS/$BinaryName"
rm -rf "$ReleasePath/$BinaryName.app/Contents/_CodeSignature"

mkdir -p "$DropboxDeployPath"
cp -v "$DeployPath/$BinaryName.app" "$DropboxDeployPath/"
cp -rv "$DeployPath/$BinaryName.app.dSYM" "$DropboxDeployPath/"
fi
Expand Down
8 changes: 1 addition & 7 deletions Telegram/Deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,7 @@ fi
fi
fi

if [ ! -d "$DropboxPath" ]; then
mkdir "$DropboxPath"
fi

if [ ! -d "$DropboxDeployPath" ]; then
mkdir "$DropboxDeployPath"
fi
mkdir -p "$DropboxDeployPath"
fi
#fi

Expand Down
8 changes: 2 additions & 6 deletions Telegram/FixMake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ Replace () {
}

Replace '\-llzma' '\/usr\/lib\/x86_64\-linux\-gnu\/liblzma\.a'
Replace '\-lz' '\/usr\/lib\/x86_64\-linux\-gnu\/libz\.a'
Replace '\-lssl' '\/usr\/lib\/x86_64\-linux\-gnu\/libssl\.a'
Replace '\-lcrypto' '\/usr\/lib\/x86_64\-linux\-gnu\/libcrypto\.a'
Replace '\-lexif' '\/usr\/lib\/x86_64\-linux\-gnu\/libexif\.a'
Replace '\-lgobject\-2\.0' '\/usr\/lib\/x86_64\-linux\-gnu\/libgobject\-2\.0\.a \/usr\/lib\/x86_64\-linux\-gnu\/libffi\.a'
Replace '\-lXi' '\/usr\/lib\/x86_64\-linux\-gnu\/libXi\.a'
Replace '\-lXi' '\/usr\/lib\/x86_64\-linux\-gnu\/libXi\.a \/usr\/lib\/x86_64\-linux\-gnu\/libXext\.a'
Replace '\-lSM' '\/usr\/lib\/x86_64\-linux\-gnu\/libSM\.a'
Replace '\-lICE' '\/usr\/lib\/x86_64\-linux\-gnu\/libICE\.a'
Replace '\-lfontconfig' '\/usr\/lib\/x86_64\-linux\-gnu\/libfontconfig\.a \/usr\/lib\/x86_64\-linux\-gnu\/libexpat\.a'
Expand All @@ -30,3 +25,4 @@ Replace '\-lswresample' '\/usr\/local\/lib\/libswresample\.a'
Replace '\-lswscale' '\/usr\/local\/lib\/libswscale\.a'
Replace '\-lavutil' '\/usr\/local\/lib\/libavutil\.a'
Replace '\-lva' '\/usr\/local\/lib\/libva\.a'
Replace '\-lQt5Network' '\/usr\/local\/Qt-5.5.1\/lib\/libQt5Network.a \/usr\/local\/ssl\/lib\/libssl.a \/usr\/local\/ssl\/lib\/libcrypto.a'
8 changes: 2 additions & 6 deletions Telegram/FixMake32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ Replace () {
}

Replace '\-llzma' '\/usr\/lib\/i386\-linux\-gnu\/liblzma\.a'
Replace '\-lz' '\/usr\/lib\/i386\-linux\-gnu\/libz\.a'
Replace '\-lssl' '\/usr\/lib\/i386\-linux\-gnu\/libssl\.a'
Replace '\-lcrypto' '\/usr\/lib\/i386\-linux\-gnu\/libcrypto\.a'
Replace '\-lexif' '\/usr\/lib\/i386\-linux\-gnu\/libexif\.a'
Replace '\-lgobject\-2\.0' '\/usr\/lib\/i386\-linux\-gnu\/libgobject\-2\.0\.a \/usr\/lib\/i386\-linux\-gnu\/libffi\.a'
Replace '\-lXi' '\/usr\/lib\/i386\-linux\-gnu\/libXi\.a'
Replace '\-lXi' '\/usr\/lib\/i386\-linux\-gnu\/libXi\.a \/usr\/lib\/i386\-linux\-gnu\/libXext\.a'
Replace '\-lSM' '\/usr\/lib\/i386\-linux\-gnu\/libSM\.a'
Replace '\-lICE' '\/usr\/lib\/i386\-linux\-gnu\/libICE\.a'
Replace '\-lfontconfig' '\/usr\/lib\/i386\-linux\-gnu\/libfontconfig\.a \/usr\/lib\/i386\-linux\-gnu\/libexpat\.a'
Expand All @@ -30,3 +25,4 @@ Replace '\-lswresample' '\/usr\/local\/lib\/libswresample\.a'
Replace '\-lswscale' '\/usr\/local\/lib\/libswscale\.a'
Replace '\-lavutil' '\/usr\/local\/lib\/libavutil\.a'
Replace '\-lva' '\/usr\/local\/lib\/libva\.a'
Replace '\-lQt5Network' '\/usr\/local\/Qt-5.5.1\/lib\/libQt5Network.a \/usr\/local\/ssl\/lib\/libssl.a \/usr\/local\/ssl\/lib\/libcrypto.a'
Loading