ci: fixed ci again
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import { yaml, file, alphaComposite } from '@aklive2d/libs'
|
import { yaml, file, alphaComposite } from '@aklive2d/libs'
|
||||||
import config from '@aklive2d/config'
|
import config from '@aklive2d/config'
|
||||||
|
import { envParser } from '@aklive2d/libs'
|
||||||
import { mapping as officialInfoMapping } from '@aklive2d/official-info'
|
import { mapping as officialInfoMapping } from '@aklive2d/official-info'
|
||||||
import type {
|
import type {
|
||||||
Config,
|
Config,
|
||||||
@@ -140,6 +141,12 @@ export const skinTable = (() => {
|
|||||||
|
|
||||||
const generateMapping = () => {
|
const generateMapping = () => {
|
||||||
if (officialInfoMapping) {
|
if (officialInfoMapping) {
|
||||||
|
const { mode } = envParser.parse({
|
||||||
|
mode: {
|
||||||
|
type: 'string',
|
||||||
|
short: 'm',
|
||||||
|
},
|
||||||
|
})
|
||||||
for (const [operatorName, operator] of Object.entries(CONFIG)) {
|
for (const [operatorName, operator] of Object.entries(CONFIG)) {
|
||||||
const operatorInfo = officialInfoMapping[operator.official_id]
|
const operatorInfo = officialInfoMapping[operator.official_id]
|
||||||
const type = operatorInfo.type
|
const type = operatorInfo.type
|
||||||
@@ -170,9 +177,11 @@ const generateMapping = () => {
|
|||||||
|
|
||||||
operator.voice_id = skinEntry.voiceId
|
operator.voice_id = skinEntry.voiceId
|
||||||
|
|
||||||
|
if (mode !== 'update') {
|
||||||
const logo = findLogo(characterTable, skinEntry.charId)
|
const logo = findLogo(characterTable, skinEntry.charId)
|
||||||
operator.logo = logo.logo
|
operator.logo = logo.logo
|
||||||
operator.invert_filter = logo.invert_filter
|
operator.invert_filter = logo.invert_filter
|
||||||
|
}
|
||||||
|
|
||||||
operator.color =
|
operator.color =
|
||||||
skinEntry.displaySkin.colorList.find((e) => e !== '') || '#000'
|
skinEntry.displaySkin.colorList.find((e) => e !== '') || '#000'
|
||||||
|
|||||||
Reference in New Issue
Block a user