From e38832c4e5af2bcabceb1d7af8743ea34570c04a Mon Sep 17 00:00:00 2001 From: Le Tan Date: Wed, 27 Sep 2023 22:15:08 +0800 Subject: [PATCH] fix rcc path --- .github/workflows/ci-linux.yml | 2 +- src/src.pro | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index b4137b8264..1e2dabe257 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -71,7 +71,6 @@ jobs: run: | qmake -v # TODO: libfcitx5 - tree /home/runner/work/vnote/Qt qmake CONFIG+=release -spec linux-g++-64 ${GITHUB_WORKSPACE}/vnote.pro working-directory: ${{runner.workspace}}/build @@ -91,6 +90,7 @@ jobs: # Move the lib out to avoid duplication mv AppDir/usr/lib ./ LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH + Qt6_Dir=$QT_HOST_BINS/.. # Copy translations mkdir -p AppDir/usr/translations cp $Qt6_Dir/translations/qt_zh_CN.qm AppDir/usr/translations diff --git a/src/src.pro b/src/src.pro index 24548eb194..75ecc00209 100644 --- a/src/src.pro +++ b/src/src.pro @@ -79,8 +79,8 @@ win32 { rcc_binary.commands = $$shell_path($$[QT_HOST_BINS]/rcc.exe) -name ${QMAKE_FILE_IN_BASE} -binary ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} rcc_binary.depend_command = $$shell_path($$[QT_HOST_BINS]/rcc.exe) -list $$QMAKE_RESOURCE_FLAGS ${QMAKE_FILE_IN} } else { - rcc_binary.commands = $$[QT_HOST_BINS]/rcc -name ${QMAKE_FILE_IN_BASE} -binary ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} - rcc_binary.depend_command = $$[QT_HOST_BINS]/rcc -list $$QMAKE_RESOURCE_FLAGS ${QMAKE_FILE_IN} + rcc_binary.commands = $$[QT_HOST_LIBEXECS]/rcc -name ${QMAKE_FILE_IN_BASE} -binary ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} + rcc_binary.depend_command = $$[QT_HOST_LIBEXECS]/rcc -list $$QMAKE_RESOURCE_FLAGS ${QMAKE_FILE_IN} } rcc_binary.input = RCC_BINARY_SOURCES rcc_binary.output = $$SRC_DESTDIR/vnote_${QMAKE_FILE_IN_BASE}.rcc