Files
WT-Offline/apps/launcher/src/main/workers/build-protocol.ts
T
N0VAN0M4LY 5a78b1fdf8 fix(copies): honor confirmed Steam locations
Bind confirmation to the selected copy and data paths throughout installation, launch, and maintenance. Validate redirected runtime data paths and recheck original files before refreshing an in-place backup.

Verified by type checking and build. The acceptance checklist covers directory links and Steam confirmation.
2026-11-30 15:23:17 +08:00

22 lines
779 B
TypeScript

import type { AppErrorCode } from '@shared/errors.ts';
export interface BuildRequest {
readonly kind: 'build';
readonly stockPath: string;
readonly copyPath: string;
readonly dataPath: string;
readonly steamLibraryConfirmed: boolean;
readonly port: number;
readonly patches: string;
readonly networkHookLibrary: string;
readonly decalCache?: string;
readonly acceptedUnavailable: readonly string[];
}
export type BuildCommand = BuildRequest | { readonly kind: 'write' };
export type BuildReply =
| { readonly kind: 'prepared'; readonly total: number }
| { readonly kind: 'progress'; readonly written: number; readonly total: number; readonly file: string }
| { readonly kind: 'written' }
| { readonly kind: 'failed'; readonly error: AppErrorCode };