From 0bf5bbf50189239220378d99737783d0f1954260 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Sat, 26 Feb 2022 13:21:27 +0800 Subject: [PATCH] optimize:utf-8 source encoding and execution encoding . compatible with VS utf-8 bom complain about transliteration file --- goldendict.pro | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/goldendict.pro b/goldendict.pro index 3dcc7315..8d667fac 100644 --- a/goldendict.pro +++ b/goldendict.pro @@ -96,6 +96,8 @@ win32 { -lavcodec } + CONFIG+=utf8_source + RC_ICONS += icons/programicon.ico icons/programicon_old.ico INCLUDEPATH += winlibs/include @@ -210,14 +212,8 @@ mac { CONFIG += zim_support !CONFIG( no_chinese_conversion_support ) { CONFIG += chinese_conversion_support - #CONFIG( x86 ) { - QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \ - cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/ - #} else { - # QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \ - # cp -R $${PWD}/opencc/x64/*.json GoldenDict.app/Contents/MacOS/opencc/ & \ - # cp -R $${PWD}/opencc/x64/*.ocd GoldenDict.app/Contents/MacOS/opencc/ - #} + QMAKE_POST_LINK += & mkdir -p GoldenDict.app/Contents/MacOS/opencc & \ + cp -R $${PWD}/opencc/*.* GoldenDict.app/Contents/MacOS/opencc/ } } DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"