Files
WT-Offline/packages/patcher/src/index.ts
T
N0VAN0M4LY b83d3e54f3 Redesign the launcher window after the game's launcher and website
The window is now a fixed 1120x720 frameless window with its own title
bar: page navigation, language, minimize and close. The layout follows
the game's launcher: a side panel, the main area over the background,
and a bottom bar with the state of the current task and the primary
action. The colours and type follow the game's website: dark blue-grey,
red actions, Roboto Condensed (bundled, OFL), cyan progress.

- Pages: home (requirements before installation, the current copy
  after), copies (copy details with folders to open, feature status
  grouped by inventory section), settings (language), about.
- The install wizard is a hook shared by the side panel (step list),
  the main area (current step) and the bottom bar (back, next, install,
  cancel, copy progress).
- The adaptation shown for a game version is the version itself when
  the patches were verified on it, otherwise the nearest verified one.
- Both language packs are rewritten in consistent product wording.
- New IPC: app:openFolder, install:listFeatures (patcher's new
  patchFeatures), window:minimize, window:close; app:getInfo reports the
  supported game versions.

Launching is not built yet; its button stays disabled.

Checked: launcher typecheck (main and renderer), electron-vite build,
root typecheck. Ran the window from a scratch user data folder over the
remote debugging port: every page and section in Chinese and English,
empty and installed state, the wizard's first step, both new IPC calls,
no console errors and no overflow.
2026-11-29 07:39:12 +08:00

31 lines
1.8 KiB
TypeScript

/**
* The patcher: builds the game copy by pointing the client at the local server
* and patching the executable. Used by the development script scripts/build-game-copy.ts and by
* the launcher. The patch definitions, the network hook library and the store pack ids are given
* by the caller.
*/
export {
buildGameCopy,
readStockGameFiles,
type GameCopyBuild,
type GameCopyFile,
type GameCopyInputs,
type StockGameFiles,
} from './build-game-copy.ts';
export { NETWORK_CONFIG_PATH, rebuildCharPack, type CharPackResult } from './char-pack.ts';
export { copyPlayerDecalCache, playerDecalCacheProblem } from './decals/player-decal-cache.ts';
export { blockingFailures, ESSENTIAL_FEATURES } from './essential-features.ts';
export { patchExecutable, type ExecutableResult } from './executable.ts';
export { assertWritableCopy, GAME_FILES, isInSteamLibrary, type WritableCopyOptions } from './game-copy.ts';
export { executableVersion, verifiedGameVersions } from './game-version.ts';
export { rebuildGuiPack, type GuiPackResult } from './gui-pack.ts';
export { loadGuiPatches, type GuiScriptEdit, type GuiScriptPatch } from './gui-patch-definition.ts';
export { ENGINE_SETTINGS_PATH, EXTRA_STORE_BUNDLE_GUID_MAP, EXTRA_STORE_BUNDLE_GUIDS, rebuildMainPack, type MainPackResult } from './main-pack.ts';
export { redirectAddresses, type AddressChange } from './network/address-rewrite.ts';
export { hostPort, localEndpoint, localUrl, type LocalEndpoint } from './network/local-endpoint.ts';
export { NETWORK_HOOK_LIBRARY, networkHookSettings } from './network/network-hook.ts';
export { redirectNetworkConfig, type NetworkRedirectReport } from './network/redirect-network-config.ts';
export { patchFeatures, type PatchFeature } from './patch-features.ts';
export { offlinePackBundleGuids } from './store/offline-bundles.ts';
export { writeGameCopy } from './write-game-copy.ts';