From bc82cdc3b31d3f90f0b4e07c525f071d7357cf30 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 18 Mar 2021 02:33:29 +0400 Subject: [PATCH] Call dump_syms and strip outside of docker. --- Telegram/build/build.sh | 9 ++++++++- Telegram/build/docker/build.sh | 9 --------- 2 files changed, 8 insertions(+), 10 deletions(-) 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/"