Skip to content

Commit

Permalink
fix macOS package problem; it's a workaround, waiting for macdeploy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn999 committed Apr 9, 2022
1 parent 9f47332 commit e242561
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/macos-6.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,15 @@ jobs:
- name: package
run: |
macdeployqt ${targetName}.app -qmldir=. -verbose=1
otool -L GoldenDict.app/Contents/MacOS/GoldenDict
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib" "@executable_path/../Frameworks/libswresample.4.dylib" "GoldenDict.app/Contents/Frameworks//libavcodec.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib" "@executable_path/../Frameworks/libavutil.57.dylib" "GoldenDict.app/Contents/Frameworks//libavcodec.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavcodec.59.dylib" "@executable_path/../Frameworks/libavcodec.59.dylib" "GoldenDict.app/Contents/Frameworks//libavformat.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib" "@executable_path/../Frameworks/libswresample.4.dylib" "GoldenDict.app/Contents/Frameworks//libavformat.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib" "@executable_path/../Frameworks/libavutil.57.dylib" "GoldenDict.app/Contents/Frameworks//libavformat.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib" "@executable_path/../Frameworks/libavutil.57.dylib" "GoldenDict.app/Contents/Frameworks//libswresample.4.dylib"
install_name_tool -change "/usr/local/Cellar/nettle/3.7.3/lib/libnettle.8.dylib" "@executable_path/../Frameworks/libnettle.8.dylib" "GoldenDict.app/Contents/Frameworks//libhogweed.6.dylib"
otool -L GoldenDict.app/Contents/MacOS/GoldenDict
otool -L GoldenDict.app/Contents/Frameworks/lib*
mkdir tmp
mv ${targetName}.app ./tmp
# --background "installer_background.png"
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,15 @@ jobs:
- name: package
run: |
macdeployqt ${targetName}.app -qmldir=. -verbose=1
otool -L GoldenDict.app/Contents/MacOS/GoldenDict
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib" "@executable_path/../Frameworks/libswresample.4.dylib" "GoldenDict.app/Contents/Frameworks//libavcodec.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib" "@executable_path/../Frameworks/libavutil.57.dylib" "GoldenDict.app/Contents/Frameworks//libavcodec.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavcodec.59.dylib" "@executable_path/../Frameworks/libavcodec.59.dylib" "GoldenDict.app/Contents/Frameworks//libavformat.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libswresample.4.dylib" "@executable_path/../Frameworks/libswresample.4.dylib" "GoldenDict.app/Contents/Frameworks//libavformat.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib" "@executable_path/../Frameworks/libavutil.57.dylib" "GoldenDict.app/Contents/Frameworks//libavformat.59.dylib"
install_name_tool -change "/usr/local/Cellar/ffmpeg/5.0/lib/libavutil.57.dylib" "@executable_path/../Frameworks/libavutil.57.dylib" "GoldenDict.app/Contents/Frameworks//libswresample.4.dylib"
install_name_tool -change "/usr/local/Cellar/nettle/3.7.3/lib/libnettle.8.dylib" "@executable_path/../Frameworks/libnettle.8.dylib" "GoldenDict.app/Contents/Frameworks//libhogweed.6.dylib"
otool -L GoldenDict.app/Contents/MacOS/GoldenDict
otool -L GoldenDict.app/Contents/Frameworks/lib*
mkdir tmp
mv ${targetName}.app ./tmp
# --background "installer_background.png"
Expand Down

0 comments on commit e242561

Please sign in to comment.