Skip to content
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

Merged
merged 2 commits into from
Aug 6, 2018
Merged

Fix shim launcher #4525

merged 2 commits into from
Aug 6, 2018

Conversation

tresf
Copy link
Member

@tresf tresf commented Aug 5, 2018

Closes #4515

Upstream linuxdeployqt patched behavior that allowed us to bundle our .AppImage using again lmms.real while the AppRun symlink would point to a shim script called lmms. 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 the lmms shim script.

@@ -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"
Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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"
Copy link
Member Author

@tresf tresf Aug 6, 2018

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.

@tresf tresf merged commit b5dc70c into LMMS:stable-1.2 Aug 6, 2018
@tresf tresf deleted the shim branch August 6, 2018 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants