Keep the About page launcher update notice compact by showing only the available version, package size, and action buttons, with a compact button to open a scrollable release notes dialog when notes are present. Render GFM Markdown safely into React elements via marked.lexer without injecting raw HTML, and raise the release notes cap from 1,600 chars to 64 KiB so full bilingual notes are preserved.
Bump @wto/launcher to 0.1.2 in apps/launcher/package.json and package-lock.json, and add the bilingual release note in .github/release-notes/v0.1.2.md.
Bump @wto/launcher to 0.1.1 in apps/launcher/package.json and package-lock.json, and add the bilingual release note in .github/release-notes/v0.1.1.md.
Checked: root and launcher typechecks pass.
Ship the Electron workers, local server sources, native library, and bundled patch set in the Windows installer.
Verified type checks, build, and the extracted installer payload with a temporary copy, local save, and server health check.
The window background now comes from two sources, served to the window
over a wto-art:// scheme from the launcher's cache:
- Website wallpapers: the newest entries of the public wallpaper gallery
on warthunder.com (two pages), list refreshed at most daily, each
1920x1080 picture downloaded when first shown and kept in the cache.
No cookies, no sign-in; a setting turns it off. Without a connection
the pictures downloaded before stay available.
- Game pictures: the nation pictures the game's own launcher keeps in
launcherr.dat next to the game, extracted from the installed copy
(fflate) once per archive version.
Without either, the window keeps its drawn background. The settings
choose a random picture per start or a fixed one (thumbnail grid); the
home page shows the picture's name with previous / next.
Checked: launcher typecheck, electron-vite build. Ran the window from a
scratch user data folder with a fake copy holding a copy of the real
launcherr.dat: 18 website wallpapers and 9 game pictures listed, both
sizes and the game pictures load through wto-art://, an unknown picture
is refused, stepping saves the choice, turning wallpapers off leaves
the game pictures, no console errors.
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.
The window now installs the offline version in five steps:
1. Game: the player picks their War Thunder folder; the launcher says
whether it is one and whether its version is the one the patches were
verified on (another version is pointed out, not refused).
2. Method: copy into a new folder (recommended; shows the size of the
installation, the room on the target drive, and why a folder cannot
be used) or install into the chosen folder itself. A Steam library
brings up the three risks and needs a tick before going on.
3. Data: the folder for saves, caches and logs, the launcher's own data
folder by default.
4. Check: the patch check runs each time the step is entered. Missing
essential changes stop the installation; other missing changes are
listed as the features they cost, translated, with the patches behind
them folded away, and need a tick to go on.
5. Install: phase, a byte progress bar and file counts while copying,
and a cancel button. An error goes back to the check step with its
translated message.
The first screen shows either the invitation to install or what is
installed (copy, data folder, version, method, missing features) with a
button to install again. Feature tags of the patch definitions have
names in both languages; a tag without one is shown as it is.
The app's productName gives its user data folder a readable name.
Checked with the launcher typecheck and build, and a start on a scratch
user data folder: the first screen and the wizard's first step render
in Chinese and English with no console errors.
The installer and launcher is an Electron app in apps/launcher: main
process, a sandboxed preload that only forwards allowed channels, and a
React window translated into Chinese and English.
Every renderer -> main call is declared once in the IPC contract
(shared/ipc/contract.ts) with zod schemas for its input and output; the
main side validates both when it registers a handler. The main process
throws error codes only, and the window translates them. The launcher's
own settings (for now the window language) are kept in the user data
folder and written through a temporary file and a rename. Development
runs can point the user data folder elsewhere with
WTO_LAUNCHER_USER_DATA.
The workspace packages (@wto/patcher, @wto/server) stay external to the
bundle: they ship as TypeScript sources and will run in utility
processes, where Electron's Node strips the types and they find their
web pages, tuning and keys next to their sources as they do today.
The root typecheck leaves out the launcher, which has its own tsconfig
files for the main process and the window.
Checked with the launcher typecheck, electron-vite build, the root
typecheck, and a start on a scratch user data folder.