diff --git a/Telegram/build/build.sh b/Telegram/build/build.sh index 5d9b64514d..2dec66fdd0 100755 --- a/Telegram/build/build.sh +++ b/Telegram/build/build.sh @@ -138,10 +138,17 @@ if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then echo "Copying from docker result folder." cp "$ReleasePath/root/$BinaryName" "$ReleasePath/$BinaryName" - cp "$ReleasePath/root/$BinaryName.sym" "$ReleasePath/$BinaryName.sym" cp "$ReleasePath/root/Updater" "$ReleasePath/Updater" cp "$ReleasePath/root/Packer" "$ReleasePath/Packer" + echo "Dumping debug symbols.." + "$ReleasePath/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 "$BinaryName" -path Updater -version $VersionForPacker $AlphaBetaParam diff --git a/Telegram/build/docker/build.sh b/Telegram/build/docker/build.sh index 76b0f506a2..e0f8d8929c 100755 --- a/Telegram/build/docker/build.sh +++ b/Telegram/build/docker/build.sh @@ -86,17 +86,8 @@ if [ "$BadCount" != "0" ]; then Error "Bad GCC usages found: $BadCount" fi -echo "Dumping debug symbols.." -/dump_syms "$ReleasePath/$BinaryName" > "$ReleasePath/$BinaryName.sym" -echo "Done!" - -echo "Stripping the executable.." -strip -s "$ReleasePath/$BinaryName" -echo "Done!" - rm -rf "$ReleasePath/root" mkdir "$ReleasePath/root" mv "$ReleasePath/$BinaryName" "$ReleasePath/root/" -mv "$ReleasePath/$BinaryName.sym" "$ReleasePath/root/" mv "$ReleasePath/Updater" "$ReleasePath/root/" mv "$ReleasePath/Packer" "$ReleasePath/root/"