Skip to content

Commit

Permalink
[fix] ci: fix macos dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Oct 23, 2024
1 parent 29b7606 commit 89b2eb6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ jobs:
macdeployqt FastTrack.app -always-overwrite
wget https://raw.githubusercontent.com/tamlok/macdeployqtfix/master/macdeployqtfix.py
cp *.qm FastTrack.app/Contents/Resources/
python macdeployqtfix.py FastTrack.app/Contents/MacOS/FastTrack ../../Qt/${{ env.QT_VERSION }}/
find / -name "libgcc_s.1.1.dylib" -exec cp {} FastTrack.app/Contents/Frameworks/ \; 2> >(tee /dev/stderr) || true
cp /opt/homebrew/Cellar/opencv/*/lib/lib*.dylib FastTrack.app/Contents/Frameworks/ # Should (and was) be automatically done by macdeployqt!
python macdeployqtfix.py fasttrack.app/contents/macos/fasttrack ../../Qt/${{ env.QT_VERSION }}/
hdiutil create -volname FastTrack -srcfolder FastTrack.app -ov -format UDZO FastTrack.dmg
- name: upload_artefact
uses: actions/upload-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ jobs:
cd build_cli/
macdeployqt FastTrack-cli.app -always-overwrite
wget https://raw.githubusercontent.com/tamlok/macdeployqtfix/master/macdeployqtfix.py
find / -name "libgcc_s.1.1.dylib" -exec cp {} FastTrack.app/Contents/Frameworks/ \; >/dev/null 2>&1 || true
cp /opt/homebrew/Cellar/opencv/*/lib/lib*.dylib FastTrack.app/Contents/Frameworks/ # Should (and was) be automatically done by macdeployqt!
python macdeployqtfix.py FastTrack-cli.app/Contents/MacOS/FastTrack-cli ../../Qt/${{ env.QT_VERSION }}/
hdiutil create -volname FastTrack-cli -srcfolder FastTrack-cli.app -ov -format UDZO FastTrack-cli.dmg
- name: upload_artefact
Expand Down
1 change: 1 addition & 0 deletions src/FastTrack-Cli.pro
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ unix:macx {
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += opencv4
PKGCONFIG += protobuf

ICON=assets/icon.icns
}
Expand Down
1 change: 1 addition & 0 deletions src/FastTrack.pro
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ unix:macx {
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += opencv4
PKGCONFIG += protobuf

ICON=assets/icon.icns
}
Expand Down

0 comments on commit 89b2eb6

Please sign in to comment.