Auto-indexing service and GraphQL API for AT Protocol Records
quickslice.slices.network/
atproto
gleam
graphql
1#!/bin/bash
2# Apply patches to dependencies after gleam build
3# Run this after: gleam build
4
5set -e
6
7cd "$(dirname "$0")"
8
9echo "Applying patches..."
10
11# Check if the mist package exists
12if [ ! -f "server/build/packages/mist/src/mist/internal/http.gleam" ]; then
13 echo "Error: mist package not found. Run 'cd server && gleam build' first."
14 exit 1
15fi
16
17# Apply the WebSocket protocol patch
18if patch -p1 --dry-run --silent < patches/mist-websocket-protocol.patch 2>/dev/null; then
19 patch -p1 < patches/mist-websocket-protocol.patch
20 echo "✓ Applied mist WebSocket protocol patch"
21else
22 echo "⚠ Patch already applied or failed to apply"
23fi
24
25echo "Done!"