feat: automated most of operator config detection

This commit is contained in:
Haoyu Xu
2025-05-06 14:04:17 +08:00
parent ea7947d900
commit f3f84068da
89 changed files with 667 additions and 849 deletions

View File

@@ -1,5 +1,7 @@
import { envParser } from '@aklive2d/libs'
import { build, init } from './index.ts'
import { init } from './libs/initer.ts'
import { build } from './libs/builder.ts'
import { update } from './libs/updater.ts'
type Args = {
mode: string
@@ -27,6 +29,9 @@ async function main() {
case 'build':
await build(name)
break
case 'update':
await update()
break
case 'init':
if (!name.length) {
throw new Error('Please set the operator name.')