Skip to content

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.

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.

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