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
+11 -1
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!"
+1 -1
Submodule cmake updated: a976e43aab...13331633e5