From c7b6a96ccd5e2a758c4be6a90a53e0c8c8100b2f 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 e3e1dd1f9c..d76f136ea7 100644 --- a/src/src.pro +++ b/src/src.pro @@ -75,8 +75,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