mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 23:37:15 +08:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added AI feature consent flow requiring user agreement before enabling AI capabilities. * Added calendar integration support including CalDAV account linking and management. * Expanded workspace administration capabilities with detailed workspace analytics and configuration options. * **Improvements** * Enhanced workspace sharing and configuration controls. * Added support for calendar provider presets and subscriptions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
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.23.0'; // Default to 1.23.0 if no version provided
|
|
|
|
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');
|