diff --git a/assets/AppIcon.icns b/assets/AppIcon.icns index 5cd90ab..9637a1d 100644 Binary files a/assets/AppIcon.icns and b/assets/AppIcon.icns differ diff --git a/assets/AppIcon.png b/assets/AppIcon.png index a07b4ab..2bb20fa 100644 Binary files a/assets/AppIcon.png and b/assets/AppIcon.png differ diff --git a/assets/README.md b/assets/README.md index 6904a76..c00ffa0 100644 --- a/assets/README.md +++ b/assets/README.md @@ -1,16 +1,17 @@ # ClearFlow app icon -The original seven-bar ClearFlow waveform uses a white mark on a dark plum rounded tile, with transparent macOS icon margins. It follows the app's existing waveform identity. No third-party artwork is included. +The approved five-bar waveform uses an ivory mark on a softly shaded dark tile, with transparent macOS icon margins. No third-party artwork is included. +- `AppIcon.png`: approved 1254-pixel bitmap master; edit this file to change the artwork. - `AppIcon.icns`: Finder, Dock and application-switcher icon, bundled by `scripts/build-app.sh`. -- `AppIcon.png`: 1024-pixel transparent preview/export. -- `../scripts/render-app-icon.swift`: editable native drawing source, under the repository MIT license. +- `../scripts/generate-icon.sh`: packages the master into all standard icon resolutions using macOS image tools. +- `../scripts/render-app-icon.swift`: retained editable drawing source for the earlier seven-bar concept; it does not generate the current icon. -Rebuild all icon resolutions on macOS with Command Line Tools installed: +Rebuild the ICNS on macOS: ```sh scripts/generate-icon.sh scripts/build-app.sh ``` -The ICNS contains 16, 32, 64, 128, 256, 512 and 1024-pixel images. Builds use the committed icon, so routine app compilation does not require regeneration. +The ICNS contains 16, 32, 64, 128, 256, 512 and 1024-pixel images. Builds use the committed ICNS; normal app compilation does not regenerate the artwork. Icon assets and the retained drawing source are covered by the repository MIT license. diff --git a/scripts/build-app.sh b/scripts/build-app.sh index fc26723..2835171 100755 --- a/scripts/build-app.sh +++ b/scripts/build-app.sh @@ -11,7 +11,7 @@ cp assets/AppIcon.icns "$APP/Contents/Resources/AppIcon.icns" python3 - "$APP" "http://127.0.0.1:8768" <<'PY' import pathlib,plistlib,sys app=pathlib.Path(sys.argv[1]) -info={"CFBundleName":"ClearFlow","CFBundleDisplayName":"ClearFlow","CFBundleIdentifier":"org.clearflow.app","CFBundleExecutable":"ClearFlow","CFBundlePackageType":"APPL","CFBundleShortVersionString":"0.4.4","CFBundleVersion":"12","LSMinimumSystemVersion":"14.0","LSUIElement":False,"CFBundleIconFile":"AppIcon","NSHighResolutionCapable":True,"NSMicrophoneUsageDescription":"ClearFlow records your voice only when you start dictation, then sends it to the transcription service you configure.","ClearFlowEndpoint":sys.argv[2]} +info={"CFBundleName":"ClearFlow","CFBundleDisplayName":"ClearFlow","CFBundleIdentifier":"org.clearflow.app","CFBundleExecutable":"ClearFlow","CFBundlePackageType":"APPL","CFBundleShortVersionString":"0.4.5","CFBundleVersion":"13","LSMinimumSystemVersion":"14.0","LSUIElement":False,"CFBundleIconFile":"AppIcon","NSHighResolutionCapable":True,"NSMicrophoneUsageDescription":"ClearFlow records your voice only when you start dictation, then sends it to the transcription service you configure.","ClearFlowEndpoint":sys.argv[2]} (app/"Contents/Info.plist").write_bytes(plistlib.dumps(info)) PY # Remove linker debug records containing the build machine absolute source paths. diff --git a/scripts/generate-icon.sh b/scripts/generate-icon.sh index 7dc63e2..7a6d5c0 100755 --- a/scripts/generate-icon.sh +++ b/scripts/generate-icon.sh @@ -1,14 +1,12 @@ #!/bin/bash set -euo pipefail cd "$(dirname "$0")/.." -mkdir -p assets +# Package the approved bitmap master without redrawing its artwork. icon_work="$(mktemp -d)" trap 'rm -rf "$icon_work"' EXIT mkdir "$icon_work/AppIcon.iconset" -swiftc scripts/render-app-icon.swift -o "$icon_work/render" for size in 16 32 128 256 512; do - "$icon_work/render" "$icon_work/AppIcon.iconset/icon_${size}x${size}.png" "$size" - "$icon_work/render" "$icon_work/AppIcon.iconset/icon_${size}x${size}@2x.png" "$((size * 2))" + sips -z "$size" "$size" assets/AppIcon.png --out "$icon_work/AppIcon.iconset/icon_${size}x${size}.png" >/dev/null + sips -z "$((size * 2))" "$((size * 2))" assets/AppIcon.png --out "$icon_work/AppIcon.iconset/icon_${size}x${size}@2x.png" >/dev/null done -cp "$icon_work/AppIcon.iconset/icon_512x512@2x.png" assets/AppIcon.png iconutil -c icns "$icon_work/AppIcon.iconset" -o assets/AppIcon.icns