Files
oled-nnw/scripts/build.ts
√(noham)² 45dd42c5e0 Rename Elegant theme to Oled and update references
The Elegant.nnwtheme files have been renamed to Oled.nnwtheme, including stylesheet, Info.plist, and template.html. References in .stylelintrc.json were updated to ignore the new stylesheet location. Documentation and build scripts were updated to reflect the new theme name.
2025-11-02 18:17:35 +01:00

24 lines
649 B
TypeScript

import path from 'node:path'
import { rimrafSync } from 'rimraf'
import { mkdirp } from 'mkdirp'
import compressing from 'compressing'
import { consola } from 'consola'
async function build() {
try {
const FILE_NAME = 'Oled.nnwtheme'
const targetDir = path.join(__dirname, '../', 'dist')
const target = path.join(targetDir, FILE_NAME)
const source = path.join(__dirname, '../', FILE_NAME)
rimrafSync(targetDir)
mkdirp.sync(targetDir)
await compressing.zip.compressDir(source, `${target}.zip`)
await compressing.tar.compressDir(source, `${target}.tar`)
}
catch (error) {
consola.error(error)
}
}
build()