refactor(aklive2d): removed appendReadme

This commit is contained in:
Haoyu Xu
2023-07-31 08:13:49 -04:00
parent e10d9f6581
commit b28ca4bfaa
3 changed files with 1 additions and 15 deletions

View File

@@ -1,15 +1,6 @@
/* eslint-disable no-undef */
import path from 'path'
import { appendSync, readSync } from './file.js'
export function appendReadme(operatorName) {
const operatorConfig = __config.operators[operatorName]
const projectJson = JSON.parse(readSync(path.join(__projectRoot, __config.folder.operator, operatorName, 'project.json')))
appendSync(
`\n| ${operatorConfig.codename["en-US"]} | [Link](https://arknights.halyul.dev/${operatorConfig.link}/?settings) | [Link](https://steamcommunity.com/sharedfiles/filedetails/?id=${projectJson.workshopid}) |`,
path.join(__projectRoot, 'README.md')
)
}
import { appendSync } from './file.js'
export function appendMainConfig(operatorName) {
appendSync(