Files
AFFiNE-Mirror/packages/frontend/apps/ios/codegen.ts
T
DarkSky 386e92acb6 feat: update schema & bump deps (#15455)
#### 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 -->
2026-08-10 18:16:13 +08:00

36 lines
1019 B
TypeScript

import { execSync } from 'node:child_process';
import { ProjectRoot } from '@affine-tools/utils/path';
import { Package } from '@affine-tools/utils/workspace';
const iosPackage = new Package('@affine/ios');
const PackageRoot = iosPackage.path;
console.log('[*] PackageRoot', PackageRoot);
const version = process.argv[2] || '1.25.7';
console.log('[*] graphql...');
execSync(`${PackageRoot}/apollo-codegen-chore.sh "${version}"`, {
stdio: 'inherit',
});
console.log('[*] rust...');
execSync(
'cargo build -p affine_mobile_native --features use-as-lib --lib --release --target aarch64-apple-ios',
{
stdio: 'inherit',
env: { ...process.env, IPHONEOS_DEPLOYMENT_TARGET: '16.5' },
}
);
execSync(
`cargo run -p affine_mobile_native --features use-as-lib --bin uniffi-bindgen generate \
--library ${ProjectRoot}/target/aarch64-apple-ios/release/libaffine_mobile_native.a \
--language swift --out-dir ${PackageRoot}/App/App/uniffi`,
{ stdio: 'inherit' }
);
console.log('[+] codegen complete');