From d471cc6481cd09b7d36b69b6b32633f284dd8ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20G=C3=B6kta=C5=9F?= Date: Tue, 19 Nov 2024 18:33:42 +0300 Subject: [PATCH] Update Deploy.cmake --- cmake/Deploy.cmake | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cmake/Deploy.cmake b/cmake/Deploy.cmake index d0392a07..5a83c67c 100644 --- a/cmake/Deploy.cmake +++ b/cmake/Deploy.cmake @@ -11,18 +11,9 @@ function(deploy TARGET) set(DEPLOY_PREFIX_PATH ${APP_DEPLOY_PREFIX}/${TARGET}.AppDir) - find_program(LINUXDEPLOYQT_EXECUTABLE linuxdeployqt) find_program(APPIMAGETOOL_EXECUTABLE appimagetool) find_program(PATCHELF_EXECUTABLE patchelf REQUIRED) - if(NOT LINUXDEPLOYQT_EXECUTABLE) - message(STATUS "Could NOT find linuxdeployqt, downloading...") - set(LINUXDEPLOYQT_EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/linuxdeployqt.run) - set(LINUXDEPLOYQT_URL "https://github.com/omergoktas/linuxdeployqt/releases/download/latest/linuxdeployqt-${CMAKE_SYSTEM_PROCESSOR}.AppImage") - file(DOWNLOAD ${LINUXDEPLOYQT_URL} ${LINUXDEPLOYQT_EXECUTABLE} SHOW_PROGRESS) - file(CHMOD ${LINUXDEPLOYQT_EXECUTABLE} PERMISSIONS OWNER_READ OWNER_EXECUTE) - endif() - if(NOT APPIMAGETOOL_EXECUTABLE) message(STATUS "Could NOT find appimagetool, downloading...") set(APPIMAGETOOL_EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/appimagetool) @@ -71,7 +62,7 @@ function(deploy TARGET) ) add_custom_command(TARGET deploy VERBATIM - COMMAND ARCH=${CMAKE_SYSTEM_PROCESSOR} ${LINUXDEPLOYQT_EXECUTABLE} + COMMAND ARCH=${CMAKE_SYSTEM_PROCESSOR} $ ${DEPLOY_PREFIX_PATH}/usr/bin/$ -appimage -no-translations -qmake=${QMAKE_EXECUTABLE} WORKING_DIRECTORY ${APP_DEPLOY_PREFIX}