mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skins): add complete KAAK voice workspace skin
This commit is contained in:
1 parent
f2e5695bb6
commit
54805f8928
13 files changed
+1809
-1191
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { readFile, writeFile } from "node:fs/promises";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { zipSync } from "fflate";
|
||||
|
||||
const sourceDirectory = new URL("../../docs/examples/kaak-voice/", import.meta.url);
|
||||
const sourceFiles = ["manifest.json", "components.json", "content.json", "skin.css"];
|
||||
const files = Object.fromEntries(await Promise.all(sourceFiles.map(async (name) => [
|
||||
name,
|
||||
await readFile(new URL(name, sourceDirectory)),
|
||||
])));
|
||||
const archive = zipSync(files, { level: 9 });
|
||||
|
||||
await Promise.all([
|
||||
writeFile(fileURLToPath(new URL("../../docs/examples/kaak-voice.wskin", import.meta.url)), archive),
|
||||
writeFile(fileURLToPath(new URL("../public/skins/kaak-voice.wskin", import.meta.url)), archive),
|
||||
]);
|
||||
Reference in new issue
Block a user