Fix editor regressions and add Blender scene and animated material import
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
import { zipSync, unzipSync, strToU8 } from "fflate";
|
||||
import { gameArchive, readBytes } from "./archive.ts";
|
||||
import { gameArchive, readBytes, engineResource } from "./archive.ts";
|
||||
import type { Project } from "./schema.ts";
|
||||
import { normalizeOptions } from "../native/options.mjs";
|
||||
export async function buildKit(
|
||||
@@ -13,7 +13,7 @@ export async function buildKit(
|
||||
for (const [name, data] of Object.entries(game))
|
||||
files["native/game/" + name] = data;
|
||||
const manifest = JSON.parse(
|
||||
new TextDecoder().decode(await read("/build-targets/manifest.json")),
|
||||
new TextDecoder().decode(await read(engineResource("/build-targets/manifest.json"))),
|
||||
) as string[];
|
||||
for (const name of manifest) {
|
||||
if (
|
||||
@@ -22,7 +22,7 @@ export async function buildKit(
|
||||
name.startsWith("/")
|
||||
)
|
||||
throw Error("Invalid build template path");
|
||||
files["native/" + name] = await read("/build-targets/" + name);
|
||||
files["native/" + name] = await read(engineResource("/build-targets/" + name));
|
||||
}
|
||||
files["native/build-config.json"] = strToU8(JSON.stringify(options, null, 2));
|
||||
files["README.txt"] = strToU8(
|
||||
|
||||
Reference in New Issue
Block a user