feat(aklive2d): remove versioning
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user