From 4623eb2e8e6a8f64ceb89a9557846e3b940d1962 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Mon, 5 Jun 2023 09:48:35 +0800 Subject: [PATCH] fix: macos icudata can not be found --- .github/workflows/macos-homebrew-xapian.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/macos-homebrew-xapian.yml b/.github/workflows/macos-homebrew-xapian.yml index 58df2212..abf5be70 100644 --- a/.github/workflows/macos-homebrew-xapian.yml +++ b/.github/workflows/macos-homebrew-xapian.yml @@ -87,6 +87,10 @@ jobs: brew install create-dmg brew install xapian brew install libzim + # brew reinstall icu4c + brew install dylibbundler + find /opt -name libicudata.72.dylib + find /usr/local -name libicudata.72.dylib - name: version-file shell: bash run: | @@ -97,17 +101,18 @@ jobs: qmake CONFIG+=release CONFIG+=no_macos_universal CONFIG+=zim_support CONFIG+=use_xapian make -j8 - # # 打包 - # - name: package - # run: | - # macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg - # 打包 - name: package run: | + macdeployqt ${targetName}.app -qmldir=. -verbose=1 - codesign --force --deep -s - GoldenDict.app otool -L GoldenDict.app/Contents/MacOS/GoldenDict - # otool -L GoldenDict.app/Contents/Frameworks/lib* + ls -al GoldenDict.app/Contents/Frameworks + otool -L GoldenDict.app/Contents/Frameworks/libicu*.dylib + cp /usr/local/Cellar/icu4c/72.1/lib/libicudata.72.dylib GoldenDict.app/Contents/Frameworks/libicudata.72.dylib + + codesign --force --deep -s - GoldenDict.app + + ls -al GoldenDict.app/Contents/Frameworks mkdir tmp mv ${targetName}.app ./tmp # --background "installer_background.png"