mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-18 02:15:03 +01:00
feat(branding) logo + app icon
This commit is contained in:
1 parent
a475ad3575
commit
3d6aa3c64c
25 files changed
+531
-220
No files matched your search
@@ -1,13 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Render ios/ProtonStream/Resources/AppIcon.svg into the asset catalog's one
|
||||
# 1024 px icon. iOS wants it opaque, so the alpha channel is dropped.
|
||||
# Compatibility entry point: all platform icons share images/logo.svg.
|
||||
set -euo pipefail
|
||||
|
||||
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
resources="$script_dir/../ios/ProtonStream/Resources"
|
||||
out="$resources/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png"
|
||||
|
||||
command -v rsvg-convert >/dev/null || { echo "rsvg-convert is required (librsvg)" >&2; exit 1; }
|
||||
command -v magick >/dev/null || { echo "magick is required (ImageMagick)" >&2; exit 1; }
|
||||
rsvg-convert -w 1024 -h 1024 "$resources/AppIcon.svg" | magick - -alpha off -strip "$out"
|
||||
echo "wrote $out"
|
||||
exec python3 "$script_dir/render-branding.py" "$@"
|
||||
Reference in new issue
Block a user