mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
fix: macos ffmpeg (#1157)
* fix: macos crash fix #1144 * macos: auto fix dependencies * macos: auto fix dependencies * macos: auto fix dependencies * macos: auto fix dependencies * macos: auto fix dependencies * macos: auto fix dependencies * macos: auto fix dependencies * fix:macos ffmepg * fix:macos ffmepg * fix:macos ffmepg * fix: macos * fix: macos * fix: macos * fix: macos * fix: macos * fix: macos --------- Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
This commit is contained in:
parent
19e848ec50
commit
a827a00714
26
.github/workflows/macos-homebrew.yml
vendored
26
.github/workflows/macos-homebrew.yml
vendored
|
@ -30,7 +30,6 @@ jobs:
|
|||
version-suffix: alpha
|
||||
prerelease: true
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
@ -52,9 +51,13 @@ jobs:
|
|||
brew install wavpack
|
||||
brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus sdl shtool texi2html theora wget x264 x265 xvid nasm
|
||||
brew install speex
|
||||
|
||||
|
||||
brew tap homebrew-ffmpeg/ffmpeg
|
||||
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-speex
|
||||
# brew tap homebrew-ffmpeg/ffmpeg
|
||||
# brew options homebrew-ffmpeg/ffmpeg/ffmpeg
|
||||
# brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-speex
|
||||
|
||||
brew install ffmpeg
|
||||
|
||||
brew install libiconv
|
||||
brew install lzo bzip2
|
||||
|
@ -70,11 +73,13 @@ jobs:
|
|||
brew install xapian
|
||||
brew install libzim
|
||||
|
||||
brew install dylibbundler
|
||||
find /opt -name libzstd.1.dylib
|
||||
# brew install dylibbundler
|
||||
git clone https://github.com/xiaoyifang/macdylibbundler.git
|
||||
cd macdylibbundler
|
||||
cmake -B build -DCMAKE_BUILD_TYPE=release
|
||||
cmake --build build --config release
|
||||
sudo make install
|
||||
find /usr/local -name libzstd.1.dylib
|
||||
brew install dylibbundler
|
||||
find /opt -name liblzma.5.dylib
|
||||
find /usr/local -name liblzma.5.dylib
|
||||
- name: version-file
|
||||
shell: bash
|
||||
|
@ -97,7 +102,7 @@ jobs:
|
|||
|
||||
- name: compile
|
||||
run: |
|
||||
qmake CONFIG+=release CONFIG+=no_macos_universal CONFIG+=zim_support CONFIG+=use_xapian CONFIG+=no_ffmpeg_player
|
||||
qmake CONFIG+=release CONFIG+=no_macos_universal CONFIG+=zim_support CONFIG+=use_xapian
|
||||
make -j8
|
||||
|
||||
- name: package
|
||||
|
@ -117,8 +122,8 @@ jobs:
|
|||
install_name_tool -change "@loader_path/../../../../opt/icu4c/lib/libicuuc.73.dylib" "@executable_path/../Frameworks/libicuuc.73.dylib" GoldenDict.app/Contents/Frameworks/libzim.8.dylib
|
||||
|
||||
|
||||
dylibbundler -of -x GoldenDict.app/Contents/Frameworks/libicui18n.73.dylib -x GoldenDict.app/Contents/Frameworks/libicudata.73.dylib -x GoldenDict.app/Contents/Frameworks/libicuuc.73.dylib -d GoldenDict.app/Contents/Frameworks/ -p @executable_path/../Frameworks
|
||||
|
||||
dylibbundler -of -x GoldenDict.app/Contents/Frameworks/libicui18n.73.dylib -x GoldenDict.app/Contents/Frameworks/libicudata.73.dylib -x GoldenDict.app/Contents/Frameworks/libicuuc.73.dylib -d GoldenDict.app/Contents/Frameworks/ -p @executable_path/../Frameworks -s /usr/local
|
||||
|
||||
otool -L GoldenDict.app/Contents/Frameworks/libzim.8.dylib
|
||||
otool -L GoldenDict.app/Contents/Frameworks/libxapian.30.dylib
|
||||
otool -L GoldenDict.app/Contents/Frameworks/liblzma.5.dylib
|
||||
|
@ -136,7 +141,6 @@ jobs:
|
|||
previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p)
|
||||
echo "previousTag : $previousTag"
|
||||
|
||||
|
||||
echo "prev_tag=$previousTag" >> $GITHUB_OUTPUT
|
||||
echo "curr_tag=$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" >> $GITHUB_OUTPUT
|
||||
|
||||
|
|
Loading…
Reference in a new issue