refactor: share wire contracts and isolate screen-sharing lifecycle

This commit is contained in:
illusia committed 2026-10-01 09:06:15 +08:00
1 parent 541a216c4d
commit f4cbd61cff
19 files changed
+2179 -1479

No files matched your search

+2 -11
View File
@@ -1,3 +1,4 @@
import type { SkinCatalogEntry as SharedSkinCatalogEntry } from "../shared/skin-catalog.js";
import { randomBytes } from "node:crypto";
import { mkdir, readFile, readdir, rename, stat, unlink, writeFile } from "node:fs/promises";
import path from "node:path";
@@ -18,17 +19,7 @@ const EOCD_SIGNATURE = 0x06054b50;
const CENTRAL_SIGNATURE = 0x02014b50;
const LOCAL_SIGNATURE = 0x04034b50;
export interface SkinCatalogEntry {
id: string;
name: string;
version: string;
author: string;
license: string;
description?: string;
minAppVersion: string;
previewUrl?: string;
previewMimeType?: string;
installedAt: number;
export interface SkinCatalogEntry extends SharedSkinCatalogEntry {
enabled: boolean;
}