-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix shim launcher #4525
Fix shim launcher #4525
Conversation
Closes LMMS#4515
@@ -55,6 +55,7 @@ echo -e "\nWriting verbose output to \"${LOGFILE}\"" | |||
export PATH="$(pwd -P)/squashfs-root/usr/bin:$(dirname "@QT_QMAKE_EXECUTABLE@")":$PATH | |||
|
|||
# Fetch portable linuxdeployqt if cache is older than $DAYSOLD | |||
APPIMAGETOOL="squashfs-root/usr/bin/appimagetool" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bug that prevents make appimage
from working if the linuxdeployqt
is cached on the system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How? And what's the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were only setting the variable when the tool was missing or outdated, so second run failed every time. We use the variable lower in the script.
@@ -181,6 +181,10 @@ if [ -e "${APPDIR}/usr/lib/libjack.so.0" ]; then | |||
mv "${APPDIR}/usr/lib/libjack.so.0" "${APPDIR}usr/lib/lmms/optional/" | |||
fi | |||
|
|||
# Point the AppRun to the shim launcher | |||
rm -f "${APPDIR}/AppRun" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .AppImage
wasn't working using -sfr
(symbolic, force, relative), so I put the rm
command in explicitly which seems to fix it.
Closes #4515
Upstream
linuxdeployqt
patched behavior that allowed us to bundle our.AppImage
using againlmms.real
while theAppRun
symlink would point to a shim script calledlmms
. This was an undocumented and non-intuitive feature and it's been removed.In reaction to this change, we just need to repoint the
AppRun
ourselves to thelmms
shim script.