feat(aklive2d): use offical_update to fetch info

This commit is contained in:
Haoyu Xu
2023-11-01 18:06:21 -04:00
parent b05590764f
commit 013783366b
44 changed files with 176 additions and 209 deletions

View File

@@ -9,12 +9,14 @@ import { rmdir } from './libs/file.js'
import Music from './libs/music.js';
import Background from './libs/background.js'
import directory from './libs/directory.js'
import OfficalInfo from './libs/offical_info.js';
import { PerfseePlugin } from '@perfsee/rollup'
global.__projectRoot = path.dirname(fileURLToPath(import.meta.url))
class ViteRunner {
#globalConfig = getConfig()
#officalInfo = new OfficalInfo()
#globalConfig = getConfig(this.#officalInfo)
#mode
#baseViteConfig = {
plugins: [splitVendorChunkPlugin()],
@@ -195,7 +197,8 @@ class ViteRunner {
async function main() {
if (process.env.npm_lifecycle_event.includes('vite')) {
global.__config = getConfig()
const officalInfo = new OfficalInfo()
global.__config = getConfig(officalInfo)
const background = new Background()
await background.process()
const backgrounds = ['operator_bg.png', ...background.files]