Skip to content

Commit

Permalink
Merge pull request #1759 from xiaoyifang/staged
Browse files Browse the repository at this point in the history
last test build before new release
  • Loading branch information
shenlebantongying authored Sep 10, 2024
2 parents 22b1c04 + 39836dc commit cbccc8f
Show file tree
Hide file tree
Showing 43 changed files with 4,362 additions and 620 deletions.
18 changes: 16 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ else ()
endif ()

qt_add_translations(${GOLDENDICT} TS_FILES ${TRANS_FILES}
QM_FILES_OUTPUT_VARIABLE qm_files)
QM_FILES_OUTPUT_VARIABLE qm_files
LUPDATE_OPTIONS "-no-ui-lines -locations none -no-obsolete")

add_dependencies(${GOLDENDICT} "release_translations")

#### installation or assemble redistribution
Expand Down Expand Up @@ -269,7 +271,19 @@ if (APPLE)

install(TARGETS ${GOLDENDICT} BUNDLE DESTINATION "${Assembling_Dir}")
install(FILES ${qm_files} DESTINATION "${Redistributable_APP}/Contents/MacOS/locale")
install(DIRECTORY "${CMAKE_SOURCE_DIR}/opencc" DESTINATION "${Redistributable_APP}/Contents/MacOS")

if (IS_READABLE "/opt/homebrew/share/opencc/")
set(OPENCC_DATA_PATH "/opt/homebrew/share/opencc/" CACHE PATH "opencc's data path")
elseif (IS_READABLE "/usr/local/share/opencc/")
set(OPENCC_DATA_PATH "/usr/local/share/opencc/" CACHE PATH "opencc's data path")
else ()
message(FATAL_ERROR "Cannot find opencc's data folder!")
endif ()

file(REAL_PATH "${OPENCC_DATA_PATH}" OPENCC_DATA_PATH_FOR_REAL)

message(STATUS "OPENCC data is found -> ${OPENCC_DATA_PATH_FOR_REAL}")
install(DIRECTORY "${OPENCC_DATA_PATH_FOR_REAL}" DESTINATION "${Redistributable_APP}/Contents/MacOS")

install(SCRIPT ${deploy_script})

Expand Down
4,297 changes: 4,297 additions & 0 deletions locale/hu_HU.ts

Large diffs are not rendered by default.

Binary file removed opencc/HKVariants.ocd2
Binary file not shown.
Binary file removed opencc/HKVariantsPhrases.ocd2
Binary file not shown.
Binary file removed opencc/HKVariantsRev.ocd2
Binary file not shown.
Binary file removed opencc/HKVariantsRevPhrases.ocd2
Binary file not shown.
Binary file removed opencc/JPShinjitaiCharacters.ocd2
Binary file not shown.
Binary file removed opencc/JPShinjitaiPhrases.ocd2
Binary file not shown.
Binary file removed opencc/JPVariants.ocd2
Binary file not shown.
Binary file removed opencc/JPVariantsRev.ocd2
Binary file not shown.
Binary file removed opencc/STCharacters.ocd2
Binary file not shown.
Binary file removed opencc/STPhrases.ocd2
Binary file not shown.
Binary file removed opencc/TSCharacters.ocd2
Binary file not shown.
Binary file removed opencc/TSPhrases.ocd2
Binary file not shown.
Binary file removed opencc/TWPhrases.ocd2
Binary file not shown.
Binary file removed opencc/TWPhrasesRev.ocd2
Binary file not shown.
Binary file removed opencc/TWVariants.ocd2
Binary file not shown.
Binary file removed opencc/TWVariantsRev.ocd2
Binary file not shown.
Binary file removed opencc/TWVariantsRevPhrases.ocd2
Binary file not shown.
56 changes: 0 additions & 56 deletions opencc/copyright

This file was deleted.

33 changes: 0 additions & 33 deletions opencc/hk2s.json

This file was deleted.

22 changes: 0 additions & 22 deletions opencc/hk2t.json

This file was deleted.

25 changes: 0 additions & 25 deletions opencc/jp2t.json

This file was deleted.

27 changes: 0 additions & 27 deletions opencc/s2hk.json

This file was deleted.

22 changes: 0 additions & 22 deletions opencc/s2t.json

This file was deleted.

27 changes: 0 additions & 27 deletions opencc/s2tw.json

This file was deleted.

32 changes: 0 additions & 32 deletions opencc/s2twp.json

This file was deleted.

16 changes: 0 additions & 16 deletions opencc/t2hk.json

This file was deleted.

16 changes: 0 additions & 16 deletions opencc/t2jp.json

This file was deleted.

22 changes: 0 additions & 22 deletions opencc/t2s.json

This file was deleted.

16 changes: 0 additions & 16 deletions opencc/t2tw.json

This file was deleted.

33 changes: 0 additions & 33 deletions opencc/tw2s.json

This file was deleted.

Loading

0 comments on commit cbccc8f

Please sign in to comment.