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:
John Preston 2021-10-31 16:49:44 +04:00
parent 7b8b50ecd5
commit d58b9dc954
2 changed files with 12 additions and 2 deletions

View File

@ -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!"

2
cmake

@ -1 +1 @@
Subproject commit a976e43aab70508a276b42c035aef730380d2be8
Subproject commit 13331633e5c2db1eeae045dd44de4f3ac7bdea3d