Skip to content

Commit

Permalink
Add iconset for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slist committed Jun 19, 2023
1 parent 811fa54 commit f1dc0c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/mac_qt6_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
with:
submodules: recursive

# - name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y qt5-default

- name: Install Qt
uses: jurplel/[email protected]
with:
Expand Down Expand Up @@ -67,30 +62,18 @@ jobs:
sips -z 512 512 $input_filepath --out "${output_iconset_name}/icon_512x512.png"
cp $input_filepath "${output_iconset_name}/icon_1024x1024.png"
iconutil -c icns $output_iconset_name
echo "ls des icons de toutes les tailles"
ls $output_iconset_name
echo "ls du icns tant attendu"
ls -lrt
echo -e "\n---\nls icons directory: ${output_iconset_name}\n---\n"
ls ${output_iconset_name}
mv icon.icns cbapi-qt-demo.icns
echo -e "\n---\nls *.icns\n---\n"
ls *.icns
- name: Package
- name: Create DMG Package
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
#ls -lrt
#find .
macdeployqt cbapi-qt-demo.app -dmg
#find .
find . |grep dmg
#otool -L QtGui.framework/QtGui
#no need already there option CONFIG +=app_bundle is added automaticaly by qmake on Mac
#mkdir cbapi-qt-demo.app/Contents/Frameworks
# cp -R .../QtCore.framework cbapi-qt-demo.app/Contents/Frameworks
# cp -R .../QtGui.framework cbapi-qt-demo.app/Contents/Frameworks
echo -e "\n---\nls *.dmg\n---\n"
ls *.dmg
- name: Save build artifact
Expand Down
3 changes: 3 additions & 0 deletions cbapi-qt-demo.pro
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ TRANSLATIONS = cbapi-qt-demo_fr_FR.ts

DISTFILES += \
README.md

#Icon for Mac OS
ICON = cbapi-qt-demo.icns

0 comments on commit f1dc0c2

Please sign in to comment.