From 4ffc04b6a569e7ba0f00c37322dc06a6ebfef4e5 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 9 Dec 2025 09:40:29 +0000 Subject: [PATCH] =?UTF-8?q?social-app=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- social-app.-.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/social-app.-.md b/social-app.-.md index b20c0d0..721ee68 100644 --- a/social-app.-.md +++ b/social-app.-.md @@ -267,3 +267,43 @@ index 36d19299b..ba095436a 100644 return agent.prepare(gates, moderation, onSessionChange) } ``` + + +## favicon + +`./src/bskyweb/static/`, `./assets/app-icons`にあります。 + + +```sh +# Copy new files that aren't in patches +function ios-copy-new-files() { + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" + echo "📁 Copying new files..." + + # Copy all assets from ios/assets/ to repos/social-app/assets/ + if [ -d "$d/ios/assets" ]; then + cp -rf "$d/ios/assets/"* "$target_dir/assets/" + echo "✅ Copied all assets (including logo.png, app-icons)" + fi + + # Copy License.tsx + if [ -f "$patching_dir/License.tsx" ]; then + mkdir -p "$target_dir/src/view/screens" + cp "$patching_dir/License.tsx" "$target_dir/src/view/screens/License.tsx" + echo "✅ Copied License.tsx" + fi + + # Copy pre-generated favicons for bskyweb + local favicon_src="$d/ios/assets/favicons" + local bskyweb_static="$target_dir/bskyweb/static" + if [ -d "$favicon_src" ] && [ -d "$bskyweb_static" ]; then + cp -f "$favicon_src/favicon.png" "$bskyweb_static/favicon.png" + cp -f "$favicon_src/favicon-16x16.png" "$bskyweb_static/favicon-16x16.png" + cp -f "$favicon_src/favicon-32x32.png" "$bskyweb_static/favicon-32x32.png" + cp -f "$favicon_src/apple-touch-icon.png" "$bskyweb_static/apple-touch-icon.png" + echo "✅ Copied favicons to bskyweb/static" + fi + + echo "" +} +``` \ No newline at end of file