mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Call dump_syms and strip outside of docker.
This commit is contained in:
parent
ebc67d25f0
commit
bc82cdc3b3
2 changed files with 8 additions and 10 deletions
|
@ -138,10 +138,17 @@ if [ "$BuildTarget" == "linux" ] || [ "$BuildTarget" == "linux32" ]; then
|
||||||
|
|
||||||
echo "Copying from docker result folder."
|
echo "Copying from docker result folder."
|
||||||
cp "$ReleasePath/root/$BinaryName" "$ReleasePath/$BinaryName"
|
cp "$ReleasePath/root/$BinaryName" "$ReleasePath/$BinaryName"
|
||||||
cp "$ReleasePath/root/$BinaryName.sym" "$ReleasePath/$BinaryName.sym"
|
|
||||||
cp "$ReleasePath/root/Updater" "$ReleasePath/Updater"
|
cp "$ReleasePath/root/Updater" "$ReleasePath/Updater"
|
||||||
cp "$ReleasePath/root/Packer" "$ReleasePath/Packer"
|
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.."
|
echo "Preparing version $AppVersionStrFull, executing Packer.."
|
||||||
cd "$ReleasePath"
|
cd "$ReleasePath"
|
||||||
"./Packer" -path "$BinaryName" -path Updater -version $VersionForPacker $AlphaBetaParam
|
"./Packer" -path "$BinaryName" -path Updater -version $VersionForPacker $AlphaBetaParam
|
||||||
|
|
|
@ -86,17 +86,8 @@ if [ "$BadCount" != "0" ]; then
|
||||||
Error "Bad GCC usages found: $BadCount"
|
Error "Bad GCC usages found: $BadCount"
|
||||||
fi
|
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"
|
rm -rf "$ReleasePath/root"
|
||||||
mkdir "$ReleasePath/root"
|
mkdir "$ReleasePath/root"
|
||||||
mv "$ReleasePath/$BinaryName" "$ReleasePath/root/"
|
mv "$ReleasePath/$BinaryName" "$ReleasePath/root/"
|
||||||
mv "$ReleasePath/$BinaryName.sym" "$ReleasePath/root/"
|
|
||||||
mv "$ReleasePath/Updater" "$ReleasePath/root/"
|
mv "$ReleasePath/Updater" "$ReleasePath/root/"
|
||||||
mv "$ReleasePath/Packer" "$ReleasePath/root/"
|
mv "$ReleasePath/Packer" "$ReleasePath/root/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue