fix(pet): resolve bundled sprite asset directly
一些检测仍在等待运行
ci / Portable quality checks (push) Waiting to run
ci / Windows Tauri build (push) Waiting to run

这个提交存在于:
YokiiroBW 2026-07-20 17:28:56 +08:00
父节点 6adf752c3a
当前提交 610e21c995

查看文件

@ -7,6 +7,7 @@ import { StatusBubble } from "./features/chat/StatusBubble";
import { ProfileManager } from "./features/profiles/ProfileManager";
import { PetPackImporter } from "./features/pet/PetPackImporter";
import { connectionRuntimeStatusSchema } from "./features/chat/types";
import aemeathSpritesheet from "./features/pet/assets/aemeath/aemeath-spritesheet.webp";
import { bootstrapStatusSchema, type BootstrapStatus } from "./types/bootstrap";
type PageKey = "chat" | "connections" | "desktop" | "pet" | "diagnostics";
@ -21,10 +22,7 @@ const initialStatus: BootstrapStatus = {
databaseSchemaVersion: 4,
};
const AEMEATH_SPRITESHEET = new URL(
"./features/pet/assets/aemeath/aemeath-spritesheet.webp",
import.meta.url,
).href;
const AEMEATH_SPRITESHEET = aemeathSpritesheet;
const AEMEATH_FRAMES: Record<"idle" | "working" | "resting" | "speaking" | "error", number[]> = {
idle: [0, 1, 2, 3, 4, 5],