This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/src/compilers/ui/manifest.ts

24 lines
620 B
TypeScript

import { config } from "../Configuration.js"
import { getUUID } from "./linker.js"
export async function genManifest() {
const [uuid1, uuid2] = await getUUID()
return JSON.stringify({
format_version: 2,
header: {
name: config.packinfo?.name || "AsaJS",
description: config.packinfo?.description || "A framework for creating UIs for AsaJS.",
uuid: uuid1,
version: config.packinfo?.version || [4, 0, 0],
min_engine_version: [1, 21, 132],
},
modules: [
{
description: "This resource pack generate by AsaJS.",
type: "resources",
uuid: uuid2,
version: [4, 0, 0],
},
],
})
}