Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Generate walkthrough videos from Stitch design screens using Remotion with smooth transitions, zoom effects, and text overlays.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/download-stitch-asset.sh
1#!/bin/bash23# Download Stitch screen asset with proper handling of Google Cloud Storage URLs4# Usage: ./download-stitch-asset.sh "https://storage.googleapis.com/..." "output-path.png"56set -e78if [ $# -ne 2 ]; then9echo "Usage: $0 <download_url> <output_path>"10echo "Example: $0 'https://storage.googleapis.com/stitch/screenshot.png' 'assets/screen.png'"11exit 112fi1314DOWNLOAD_URL="$1"15OUTPUT_PATH="$2"1617# Create directory if it doesn't exist18OUTPUT_DIR=$(dirname "$OUTPUT_PATH")19mkdir -p "$OUTPUT_DIR"2021echo "Downloading from: $DOWNLOAD_URL"22echo "Saving to: $OUTPUT_PATH"2324# Use curl with follow redirects and authentication handling25curl -L -o "$OUTPUT_PATH" "$DOWNLOAD_URL"2627if [ $? -eq 0 ]; then28echo "✓ Successfully downloaded to $OUTPUT_PATH"2930# Display file size for verification31if command -v stat &> /dev/null; then32FILE_SIZE=$(stat -f%z "$OUTPUT_PATH" 2>/dev/null || stat -c%s "$OUTPUT_PATH" 2>/dev/null)33echo " File size: $FILE_SIZE bytes"34fi35else36echo "✗ Download failed"37exit 138fi39