ai/at
2
0

fix(patch): curl URL delimiter bug, add DM grapheme limit patch

This commit is contained in:
2026-03-24 18:03:53 +09:00
parent fde5046b22
commit abfd02ecbd
9 changed files with 104 additions and 7 deletions

View File

@@ -65,8 +65,8 @@ typeset -a FAILED_PATCHES
# Patch file lists
typeset -a PATCH_FILES_CURL
PATCH_FILES_CURL=(
"4367-atproto-services-bsky-api.diff:https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/bsky/api.js:services/bsky/api.js"
"4367-atproto-services-pds-index.diff:https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/pds/index.js:services/pds/index.js"
"4367-atproto-services-bsky-api.diff|https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/bsky/api.js|services/bsky/api.js"
"4367-atproto-services-pds-index.diff|https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/pds/index.js|services/pds/index.js"
)
typeset -a PATCH_FILES
@@ -76,6 +76,8 @@ PATCH_FILES=(
"130-atproto-ozone-enable-daemon-v2.patch"
"200-feed-generator-custom.patch"
"210-bgs-since-empty-fix.patch"
"220-atproto-chat-grapheme-limit.patch"
"049-social-app-dockerfile-chat-grapheme.patch"
)
function at-repos-clone() {
@@ -258,10 +260,10 @@ function patch-apply-with-curl() {
function at-repos-patch-apply-all() {
# Apply curl patches
for patch_info in "${PATCH_FILES_CURL[@]}"; do
local filename="${patch_info%%:*}"
local rest="${patch_info#*:}"
local download_url="${rest%%:*}"
local download_target="${rest#*:}"
local filename="${patch_info%%|*}"
local rest="${patch_info#*|}"
local download_url="${rest%%|*}"
local download_target="${rest#*|}"
local title="${filename%.*}"
local repo=""
@@ -285,6 +287,10 @@ function at-repos-patch-apply-all() {
# Note: check indigo/bgs BEFORE pds to avoid "newpds" matching "pds"
if [[ $filename == *"social-app"* || $filename == *"statsig"* ]]; then
repo="social-app"
# Copy chat grapheme limit patch for Dockerfile build
if [[ $filename == "049-social-app-dockerfile-chat-grapheme.patch" ]] && [ -f "$d/patching/230-atproto-api-chat-grapheme-limit.patch" ]; then
cp "$d/patching/230-atproto-api-chat-grapheme-limit.patch" "$d/repos/social-app/"
fi
elif [[ $filename == *"indigo"* || $filename == *"bgs"* ]]; then
repo="indigo"
elif [[ $filename == *"atproto"* ]]; then