Skip to content

ci(release): set the app icon as the macOS DMG volume icon - #6

Merged
howar31 merged 1 commit into
mainfrom
chore/dmg-volume-icon
Sep 29, 2026
Merged

howar31 merged 1 commit into
mainfrom
chore/dmg-volume-icon

Conversation

@howar31

@howar31 howar31 commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Cause

The mounted macOS disk image shows the generic disk icon on the desktop and in Finder. The release workflow builds the DMG with create-dmg but never sets a volume icon, so the volume root has no .VolumeIcon.icns and no custom-icon attribute.

Change

  • .github/workflows/release.yml: add --volicon to the create-dmg call, pointing at the AppIcon.icns that flutter build macos already writes into the app bundle. No new asset. The hdiutil fallback path is unchanged.

Verification

  • Local: ran the same create-dmg command against the existing Release bundle, mounted the image; the volume root carries .VolumeIcon.icns (byte-identical to the bundle's AppIcon.icns) and the custom-icon attribute, and Finder resolves the volume icon to the app icon.
  • Not verified: the release workflow itself; it runs on the next tag.

The mounted disk image showed the generic disk icon on the desktop and in
Finder. create-dmg's --volicon places .VolumeIcon.icns at the volume root
and sets the custom-icon attribute; the AppIcon.icns that flutter build
already writes into the app bundle is reused, so no new asset is needed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@howar31
howar31 merged commit cc7a4a2 into main Sep 29, 2026
4 checks passed
@howar31
howar31 deleted the chore/dmg-volume-icon branch September 29, 2026 17:55

This branch was successfully deployed

1 active deployment
github-pages — cc7a4a28 Deployed Sep 29, 2026 by howar31 via deploy #63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant