Skip to content

Commit

Permalink
👷 ci: Update build-and-release workflow for DMG creation process
Browse files Browse the repository at this point in the history
Refactor the DMG creation steps in the GitHub Actions workflow.
Move the app to a temporary directory for better organization and
create a symbolic link to the Applications folder. This improves
the clarity and structure of the build process.
  • Loading branch information
samzong committed Oct 22, 2024
1 parent 244ee62 commit 5866a3b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ jobs:
- name: Prepare for DMG
run: |
mkdir -p dist
mv build/export/MacMusicPlayer.app dist/
ls -R dist
mkdir -p dist/dmg_temp
mv build/export/MacMusicPlayer.app dist/dmg_temp/
ln -s /Applications dist/dmg_temp/Applications
ls -R dist/dmg_temp
- name: Create DMG
run: |
hdiutil create -volname MacMusicPlayer \
-srcfolder dist \
-srcfolder dist/dmg_temp \
-ov -format UDZO dist/MacMusicPlayer.dmg
- name: Create Release and Upload Asset
Expand Down

0 comments on commit 5866a3b

Please sign in to comment.