Things are running really smoothly. Relief in the breathe
This commit is contained in:
parent
1dca7b035e
commit
8403ff349e
|
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "=== Cue Desktop ==="
|
||||
cd cue
|
||||
cargo clean
|
||||
./build.sh
|
||||
cd ..
|
||||
|
||||
echo ""
|
||||
echo "=== Cue iOS ==="
|
||||
cd cue-ios
|
||||
SVG_SRC="../cue/assets/cue.svg"
|
||||
ICON_DIR="CueIOS/Assets.xcassets/AppIcon.appiconset"
|
||||
if [ -f "$SVG_SRC" ] && command -v rsvg-convert &>/dev/null; then
|
||||
echo "Regenerating iOS app icon"
|
||||
rsvg-convert -w 1024 -h 1024 "$SVG_SRC" -o /tmp/cue-icon-raw.png
|
||||
if command -v magick &>/dev/null; then
|
||||
magick /tmp/cue-icon-raw.png -background black -flatten \
|
||||
-gravity center -extent 1024x1024 "$ICON_DIR/appicon-1024.png"
|
||||
else
|
||||
magick convert /tmp/cue-icon-raw.png -background black -flatten \
|
||||
"$ICON_DIR/appicon-1024.png" 2>/dev/null || \
|
||||
cp /tmp/cue-icon-raw.png "$ICON_DIR/appicon-1024.png"
|
||||
fi
|
||||
rm -f /tmp/cue-icon-raw.png
|
||||
fi
|
||||
xcodegen generate
|
||||
echo "Xcode project regenerated — open CueIOS.xcodeproj to build"
|
||||
cd ..
|
||||
|
||||
echo ""
|
||||
echo "=== Firmware ==="
|
||||
make fcf
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 334 KiB After Width: | Height: | Size: 179 KiB |
Binary file not shown.
Loading…
Reference in New Issue