Skip to content

Commit

Permalink
Macos: manually create dmg to fix icon position (#2556)
Browse files Browse the repository at this point in the history
* Macos: manually create dmg to fix icon position

* Fix dmg name
  • Loading branch information
ctrlaltca committed Aug 31, 2023
1 parent de260e5 commit 4f5d7b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install other prerequisites
run: |
brew update
brew install enchant openssl --force-bottle
brew install enchant openssl create-dmg --force-bottle
- name: Configure CMake
run: |
Expand Down Expand Up @@ -60,11 +60,16 @@ jobs:
echo "dmg_name=KVIrc-$kvi_version-dev-$git_desc" >> "$GITHUB_ENV"
- name: Create DMG
uses: QQxiaoming/create-dmg-action@v0.0.2
with:
name: '${{ env.dmg_name }}'
srcdir: 'build/KVIrc.app'

shell: bash
run: |
cd '${{github.workspace}}'
create-dmg --volname "${{ env.dmg_name }}" \
--background "dist/macos/installer_background.png" \
--window-pos 200 120 \
--window-size 800 450 \
--icon KVIrc.app 200 190 \
--icon-size 100 \
--app-drop-link 600 185 "${{ env.dmg_name }}.dmg" "build/KVIrc.app"
- name: Publish artifact
uses: actions/upload-artifact@v3
Expand Down
Binary file added dist/macos/installer_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/osx/background.jpg
Binary file not shown.
10 changes: 0 additions & 10 deletions dist/osx/osx_dmg.json

This file was deleted.

0 comments on commit 4f5d7b4

Please sign in to comment.