From f1dc0c2b9d84d6fc505912f9848f287682a13d46 Mon Sep 17 00:00:00 2001 From: slist Date: Mon, 19 Jun 2023 14:27:43 +0200 Subject: [PATCH] Add iconset for MacOS --- .github/workflows/mac_qt6_release.yml | 33 +++++++-------------------- cbapi-qt-demo.pro | 3 +++ 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/.github/workflows/mac_qt6_release.yml b/.github/workflows/mac_qt6_release.yml index 0f445f4..8945624 100644 --- a/.github/workflows/mac_qt6_release.yml +++ b/.github/workflows/mac_qt6_release.yml @@ -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/install-qt-action@v3.2.0 with: @@ -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 diff --git a/cbapi-qt-demo.pro b/cbapi-qt-demo.pro index 9599e09..a45d692 100644 --- a/cbapi-qt-demo.pro +++ b/cbapi-qt-demo.pro @@ -99,3 +99,6 @@ TRANSLATIONS = cbapi-qt-demo_fr_FR.ts DISTFILES += \ README.md + +#Icon for Mac OS +ICON = cbapi-qt-demo.icns