mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 14:08:55 +08:00
386e92acb6
#### PR Dependency Tree * **PR #15455** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added workspace artifact management, artifact details, and removal support. - Added workspace BYOK configuration insights, model capabilities, connection checks, and validation status. - Added profile reordering and credential revision safeguards. - **Improvements** - Improved Copilot session creation with server-provided history and metadata. - Streamlined context handling with document scope selections and selected-source synchronization. - **Bug Fixes** - Improved compatibility and reliability across web, Android, and iOS Copilot workflows. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
28 lines
1.0 KiB
Bash
Executable File
28 lines
1.0 KiB
Bash
Executable File
#!/bin/zsh
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
set -euo pipefail
|
|
|
|
VERSION=${1:-"1.25.7"}
|
|
echo "📦 Apollo Version: $VERSION"
|
|
|
|
sed -i '' "s|apollo-ios\.git\", from: \"[^\"]*\"|apollo-ios.git\", from: \"$VERSION\"|" "App/Packages/Intelligents/Package.swift"
|
|
sed -i '' "s|apollo-ios\", exact: \"[^\"]*\"|apollo-ios\", exact: \"$VERSION\"|" "App/Packages/AffineGraphQL/Package.swift"
|
|
echo "✅ Version synced"
|
|
|
|
mkdir -p "App/Packages/AffineGraphQL/apollo-ios-cli"
|
|
curl -L "https://github.com/apollographql/apollo-ios/releases/download/$VERSION/apollo-ios-cli.tar.gz" | tar -xz -C "App/Packages/AffineGraphQL/apollo-ios-cli"
|
|
echo "✅ CLI downloaded"
|
|
|
|
CLI_BIN=$(find App/Packages/AffineGraphQL/apollo-ios-cli -type f -perm +111 -name 'apollo-ios-cli' | head -n 1)
|
|
[ -z "$CLI_BIN" ] && { echo "❌ apollo-ios-cli executable not found"; exit 1; }
|
|
echo "🔧 Using binary tool at: $CLI_BIN"
|
|
|
|
$CLI_BIN generate --path "apollo-codegen-config.json" --ignore-version-mismatch
|
|
echo "✅ Code generated"
|
|
|
|
rm -rf "App/Packages/AffineGraphQL/apollo-ios-cli"
|
|
echo "🧹 Cleaned up"
|
|
|