chore: config updates

This commit is contained in:
Haoyu Xu
2025-02-22 18:07:27 +08:00
parent 51d5334d67
commit 4a1b901f25
13 changed files with 205 additions and 104 deletions

View File

@@ -1,8 +1,8 @@
dynchars: dynchars
item_to_download:
- homebackground/wrapper
- ui_camp_logo
- charportraits
- voice.*/extra
- homebackground/wrapper
- ui_camp_logo
- charportraits
- voice.*/extra
additional_regex:
- ^(?!(avg))(.*)$
- ^(?!(avg))(.*)$

View File

@@ -5,7 +5,7 @@ import { yaml } from '@aklive2d/libs'
export const DIST_DIR = path.resolve(import.meta.dirname, config.dir_name.dist)
export const CONFIG_PATH = path.resolve(
import.meta.dirname,
config.dir_name.config_yaml
config.module.assets.config_yaml
)
const selfConfig = yaml.read(CONFIG_PATH)

View File

@@ -12,7 +12,7 @@ export default async (packageDir) => {
'background',
config.dir_name.dist
),
target: path.resolve(DIST_DIR, config.dir_name.background),
target: path.resolve(DIST_DIR, config.module.assets.background),
},
{
fn: file.symlink,
@@ -21,12 +21,12 @@ export default async (packageDir) => {
'charword-table',
config.dir_name.dist
),
target: path.resolve(DIST_DIR, config.dir_name.charword_table),
target: path.resolve(DIST_DIR, config.module.assets.charword_table),
},
{
fn: file.symlink,
source: path.resolve(packageDir, 'music', config.dir_name.data),
target: path.resolve(DIST_DIR, config.dir_name.music),
target: path.resolve(DIST_DIR, config.module.assets.music),
},
{
fn: file.symlinkAll,
@@ -40,7 +40,7 @@ export default async (packageDir) => {
'project-json',
config.dir_name.dist
),
target: path.resolve(DIST_DIR, config.dir_name.project_json),
target: path.resolve(DIST_DIR, config.module.assets.project_json),
},
]
copyQueue.map(({ fn, source, target }) => {

View File

@@ -1,5 +1,4 @@
import path from 'node:path'
import fs from 'node:fs'
import { envParser } from '@aklive2d/libs'
import config from '@aklive2d/config'
import build from './libs/build.js'