- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
933 B
TypeScript
29 lines
933 B
TypeScript
import { ConfigPlugin, withDangerousMod } from 'expo/config-plugins';
|
|
import fs from 'fs/promises';
|
|
import path from 'path';
|
|
|
|
import { resolveFontPaths } from './utils';
|
|
|
|
export const withFontsAndroid: ConfigPlugin<string[]> = (config, fonts) => {
|
|
return withDangerousMod(config, [
|
|
'android',
|
|
async (config) => {
|
|
const resolvedFonts = await resolveFontPaths(fonts, config.modRequest.projectRoot);
|
|
await Promise.all(
|
|
resolvedFonts.map(async (asset) => {
|
|
const fontsDir = path.join(
|
|
config.modRequest.platformProjectRoot,
|
|
'app/src/main/assets/fonts'
|
|
);
|
|
await fs.mkdir(fontsDir, { recursive: true });
|
|
const output = path.join(fontsDir, path.basename(asset));
|
|
if (output.endsWith('.ttf') || output.endsWith('.otf')) {
|
|
await fs.copyFile(asset, output);
|
|
}
|
|
})
|
|
);
|
|
return config;
|
|
},
|
|
]);
|
|
};
|