Commit fcef0485 authored by Martin Höher's avatar Martin Höher

Merge branch '216-appimage-is-no-longer-working' into 'master'

Resolve "AppImage is no longer working"

Closes #216

See merge request !103
parents dcb1ec41 29fb7395
Pipeline #43159695 passed with stages
in 13 minutes and 13 seconds
......@@ -2,17 +2,10 @@ find_package(Qt5Core REQUIRED)
get_target_property(QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)
set(LINUXDEPLOYQT_URL
https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
https://github.com/probonopd/linuxdeployqt/releases/download/5/linuxdeployqt-5-x86_64.AppImage
)
set(LINUXDEPLOYQT
./linuxdeployqt-continuous-x86_64.AppImage
)
set(APPIMAGETOOL_URL
https://github.com/AppImage/AppImageKit/releases/download/10/appimagetool-x86_64.AppImage
)
set(APPIMAGETOOL ./appimagetool-x86_64.AppImage)
set(DESKTOPINTEGRATION_URL
https://raw.githubusercontent.com/AppImage/AppImageKit/master/desktopintegration
./linuxdeployqt-5-x86_64.AppImage
)
add_custom_target(
......@@ -21,20 +14,10 @@ add_custom_target(
wget -O ${LINUXDEPLOYQT} ${LINUXDEPLOYQT_URL}
COMMAND
chmod +x ${LINUXDEPLOYQT}
COMMAND
wget -O ${APPIMAGETOOL} ${APPIMAGETOOL_URL}
COMMAND
chmod +x ${APPIMAGETOOL}
COMMAND
curl -o OpenTodoList.wrapper ${DESKTOPINTEGRATION_URL}
COMMAND
chmod +x OpenTodoList.wrapper
COMMAND
rm -rf AppImageBuild
COMMAND
mkdir -p AppImageBuild
COMMAND
cp OpenTodoList.wrapper AppImageBuild/OpenTodoList.wrapper
COMMAND
cp app/OpenTodoList AppImageBuild/
COMMAND
......@@ -46,13 +29,9 @@ add_custom_target(
COMMAND
cp -r ${CMAKE_CURRENT_SOURCE_DIR}/templates/icons/64x64/apps/OpenTodoList.png AppImageBuild/
COMMAND
${LINUXDEPLOYQT} AppImageBuild/OpenTodoList
-qmldir=${CMAKE_CURRENT_SOURCE_DIR}/app -qmake=${QMAKE_EXECUTABLE}
-bundle-non-qt-libs
COMMAND
rm AppImageBuild/AppRun || /bin/true
${LINUXDEPLOYQT} --appimage-extract
COMMAND
ln -s OpenTodoList.wrapper AppImageBuild/AppRun
COMMAND
${APPIMAGETOOL} AppImageBuild OpenTodoList-x86_64.AppImage
./squashfs-root/AppRun AppImageBuild/OpenTodoList
-qmldir=${CMAKE_CURRENT_SOURCE_DIR}/app -qmake=${QMAKE_EXECUTABLE}
-appimage
)
[Desktop Entry]
Type=Application
Name=OpenTodoList
Exec=OpenTodoList.wrapper %F
Exec=OpenTodoList %F
Icon=OpenTodoList
Comment=A note and task managing application
Terminal=false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment