refactor(launcher): open mod documentation on wto-project.net

Replace the local offline HTML mod docs viewer in the launcher Mods page with a direct link to https://wto-project.net/mod-docs, remove the unused mods:openDocs IPC path and resource entry, and drop build-mod-docs-html.ts from Windows packaging while keeping bundled mod templates intact. Root typecheck, launcher typecheck, and electron-vite build passed.
This commit is contained in:
N0VAN0M4LY committed 2026-12-03 06:26:52 +08:00
1 parent 742094ea1e
commit 02fe867cf1
7 files changed
+4 -439

No files matched your search

-2
View File
@@ -5,7 +5,6 @@ import { dirname, join, relative, resolve, sep } from 'node:path';
import { Arch, build, Platform } from 'electron-builder';
import { launcherReleaseFiles, portableLauncherReleaseFiles } from '../apps/launcher/src/shared/schemas/app-update.ts';
import { formatManifest, MANIFEST_FILE, PATCH_PACK_FORMAT, recordedGameVersions } from '../packages/patcher/src/index.ts';
import { buildOfflineModDocs } from './build-mod-docs-html.ts';
const repository = resolve(import.meta.dirname, '..');
const launcher = join(repository, 'apps', 'launcher');
@@ -72,7 +71,6 @@ async function stageInstaller(stage: string, manifest: LauncherManifest): Promis
await cp(join(repository, 'LICENSE'), join(resources, 'LICENSE-WTOffline'));
await cp(join(native, 'wto_ws.dll'), join(resources, 'native', 'wto_ws.dll'));
await cp(join(repository, 'mod-dev-docs', 'templates'), join(resources, 'mod-templates'), { recursive: true });
buildOfflineModDocs(join(repository, 'mod-dev-docs'), join(resources, 'mod-dev-docs'));
for (const folder of ['exe', 'gui', 'native', 'versions']) {
await cp(join(repository, 'patches', folder), join(resources, 'patches', folder), { recursive: true });
}