mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Re-enable -pie along with AppImage-like format hack.
Fixes #1112. This allows the binary to be launched even when compiled with -pie.
This commit is contained in:
+11
-1
@@ -164,8 +164,18 @@ if [ "$BuildTarget" == "linux" ]; then
|
||||
strip -s "$ReleasePath/$BinaryName"
|
||||
echo "Done!"
|
||||
|
||||
echo "Preparing version $AppVersionStrFull, executing Packer.."
|
||||
echo "Appending an icon.."
|
||||
rm -rf "$ReleasePath/$BinaryName.AppDir"
|
||||
rm -rf "$ReleasePath/$BinaryName.squashfs"
|
||||
mkdir "$ReleasePath/$BinaryName.AppDir"
|
||||
cp "$HomePath/Resources/art/logo_256.png" "$ReleasePath/$BinaryName.AppDir/.DirIcon"
|
||||
cd "$ReleasePath"
|
||||
mksquashfs "$BinaryName.AppDir" "$BinaryName.squashfs" -root-owned -noappend
|
||||
cat "$BinaryName.squashfs" >> "$BinaryName"
|
||||
echo "8: 414902" | xxd -r - "$BinaryName"
|
||||
echo "Done!"
|
||||
|
||||
echo "Preparing version $AppVersionStrFull, executing Packer.."
|
||||
"./Packer" -path "$BinaryName" -path Updater -version $VersionForPacker $AlphaBetaParam
|
||||
echo "Packer done!"
|
||||
|
||||
|
||||
+1
-1
Submodule cmake updated: a976e43aab...13331633e5
Reference in New Issue
Block a user