mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
10 lines
339 B
TypeScript
10 lines
339 B
TypeScript
import { controledMihomoConfig, currentProfile } from './config'
|
|
import { mihomoWorkConfigPath } from './dirs'
|
|
import yaml from 'yaml'
|
|
import fs from 'fs'
|
|
|
|
export function generateProfile(): void {
|
|
const profile = Object.assign(currentProfile, controledMihomoConfig)
|
|
fs.writeFileSync(mihomoWorkConfigPath(), yaml.stringify(profile))
|
|
}
|