mirror of
https://github.com/joeseesun/subcast.git
synced 2026-12-02 01:30:02 +08:00
The DMG was made with a bare `hdiutil create`, so Finder sorted the icons alphabetically (Applications on the left, SubCast on the right) in a plain white default window. Build it with create-dmg instead: 660x400 window, 128pt icons, SubCast.app at (170,180), an Applications link at (490,180), and a background with an arrow and a bilingual drag hint. The background source is scripts/dmg/background.svg; render.sh rebuilds the 1x/2x PNGs, which release.sh merges into a Retina TIFF with tiffutil. Signing, notarization and stapling are unchanged. Fixes #8
8 lines
375 B
Bash
Executable File
8 lines
375 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Re-render the DMG background PNGs from background.svg (needs rsvg-convert: brew install librsvg).
|
|
# scripts/release.sh combines the two into a Retina-aware TIFF with tiffutil at build time.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
rsvg-convert -w 660 -h 400 background.svg -o background.png
|
|
rsvg-convert -w 1320 -h 800 background.svg -o background@2x.png
|