Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Add fancy DMG to CI #148

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ jobs:
- name: Generate .dmg
run: |
"$Qt6_DIR"/bin/macdeployqt build_macos/src/Lith.app -qmldir=. -dmg -appstore-compliant -codesign=Z52EFCPL6D
- name: Create a fancier .dmg
run: |
mkdir tmpmountpoint/
mv build_macos/src/Lith.dmg build_macos/src/Lith_qt.dmg
hdiutil attach build_macos/src/Lith_qt.dmg -mountpoint tmpmountpoint/
git clone https://github.com/create-dmg/create-dmg.git
./create-dmg/create-dmg --app-drop-link 484 200 --icon-size 128 --window-size 980 512 --text-size 16 --icon "Lith.app" 100 200 --volname Lith --background ./dist/macos/dmgbg.png build_macos/Lith.dmg tmpmountpoint/Lith.app
- name: Upload artifacts to GitHub
if: github.event_name != 'create'
uses: actions/upload-artifact@v2
Expand Down
Binary file added dist/macos/dmgbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.