build: updated build assets

This commit is contained in:
Haoyu Xu
2023-11-01 15:12:17 -04:00
parent a57cea003d
commit a61e7caa75
3 changed files with 35 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import Background from './libs/background.js'
import CharwordTable from './libs/charword_table.js';
import Music from './libs/music.js';
import officalUpdate from './libs/offical_update.js';
import LogoInfo from './libs/logo_info.js';
async function main() {
global.__projectRoot = path.dirname(fileURLToPath(import.meta.url))
@@ -27,6 +28,7 @@ async function main() {
const charwordTable = new CharwordTable()
const musicTable = new Music()
const logoTable = new LogoInfo()
/**
* Skip all, no need for OPERATOR_NAME
@@ -54,6 +56,9 @@ async function main() {
case 'music':
await musicTable.process()
process.exit(0)
case 'logo':
await logoTable.process()
process.exit(0)
case 'offical_update':
await officalUpdate()
process.exit(0)