feat(aklive2d): remove versioning

This commit is contained in:
Haoyu Xu
2023-08-23 21:46:17 +08:00
parent 930447889f
commit 9cb3be7c6e
9 changed files with 0 additions and 46 deletions

View File

@@ -1,7 +1,6 @@
/* eslint-disable no-undef */
import path from 'path'
import { read } from './yaml.js'
import { read as readVersion } from './version.js'
import { getOperatorId } from './charword_table.js'
export default function () {
@@ -22,11 +21,5 @@ function process(config) {
operator.id = getOperatorId(operator).replace(/^(char_)(\d+)(_.+)$/g, '$2')
}
// version
config.version = {
showcase: readVersion(path.join(__projectRoot)),
directory: readVersion(path.join(__projectRoot, 'directory')),
}
return config
}

View File

@@ -49,10 +49,6 @@ class Evalable {
return this.#step(location, varName)
}
version(prefix, suffix) {
return `${prefix}${__config.version.showcase}${suffix}`
}
#step(location, varName) {
let content = this.#config
if (location === 'assets') content = this.#assets

View File

@@ -1,15 +0,0 @@
import path from 'path'
import { readSync, writeSync } from './file.js'
export function read (dir) {
return readSync(path.join(dir, 'Version'))
}
export function increase(dir) {
// release version will be lagged by 0.0.1
const version = read(dir)
const [major, minor, patch] = version.split('.')
const newVersion = `${major}.${minor}.${+patch + 1}`
writeSync(newVersion, path.join(dir, 'Version'))
return newVersion
}