docs(mods): add standalone mod-dev-docs handbook and launcher quick-open button
This commit is contained in:
1 parent
5983e3f3e2
commit
aa952e7cca
26 files changed
+1619
-145
No files matched your search
@@ -5,6 +5,7 @@ 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');
|
||||
@@ -71,6 +72,7 @@ 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, 'dev-docs', 'templates', 'mods'), 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 });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user