Skip to content

Commit 050d2d3

Browse files
committed
macOs: Deploy Qt translations
1 parent 8d55db3 commit 050d2d3

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.ci/deploy-mac-arm64.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ else
5757
rm -f translations.zip
5858
fi
5959

60+
# Copy Qt translations manually
61+
QT_TRANS="$WORKDIR/qt-downloader/$QT_VER/clang_64/translations"
62+
cp $QT_TRANS/qt*.qm rpcs3.app/Contents/translations
63+
6064
# Hack
6165
install_name_tool -delete_rpath /opt/homebrew/lib RPCS3.app/Contents/MacOS/rpcs3 || echo "Hack for deleting rpath /opt/homebrew/lib not needed"
6266
install_name_tool -delete_rpath /opt/homebrew/opt/llvm@$LLVM_COMPILER_VER/lib RPCS3.app/Contents/MacOS/rpcs3 || echo "Hack for deleting rpath /opt/homebrew/opt/llvm@$LLVM_COMPILER_VER/lib not needed"

.ci/deploy-mac.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ else
5858
rm -f translations.zip
5959
fi
6060

61+
# Copy Qt translations manually
62+
QT_TRANS="$WORKDIR/qt-downloader/$QT_VER/clang_64/translations"
63+
cp $QT_TRANS/qt*.qm rpcs3.app/Contents/translations
64+
6165
# Need to do this rename hack due to case insensitive filesystem
6266
mv rpcs3.app RPCS3_.app
6367
mv RPCS3_.app RPCS3.app

rpcs3/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ if (NOT ANDROID)
148148
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/bin/GuiConfigs $<TARGET_FILE_DIR:rpcs3>/GuiConfigs
149149
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/bin/test $<TARGET_FILE_DIR:rpcs3>/test
150150
COMMAND "${WINDEPLOYQT_EXECUTABLE}" --no-compiler-runtime --no-opengl-sw --no-patchqt
151-
--no-translations --no-system-d3d-compiler --no-system-dxc-compiler --no-quick-import
151+
--no-system-d3d-compiler --no-system-dxc-compiler --no-quick-import
152152
--plugindir "$<IF:$<CXX_COMPILER_ID:MSVC>,$<TARGET_FILE_DIR:rpcs3>/plugins,$<TARGET_FILE_DIR:rpcs3>/share/qt6/plugins>"
153+
--translationdir "$<IF:$<CXX_COMPILER_ID:MSVC>,$<TARGET_FILE_DIR:rpcs3>/translations,$<TARGET_FILE_DIR:rpcs3>/share/qt6/translations>"
153154
--verbose 0 "$<TARGET_FILE:rpcs3>")
154155
endif()
155156

0 commit comments

Comments
 (0)