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.
32 lines
838 B
JSON
32 lines
838 B
JSON
{
|
|
"name": "@wto/launcher",
|
|
"productName": "WTOffline Launcher",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Installer and launcher of the War Thunder offline project.",
|
|
"type": "module",
|
|
"main": "./out/main/index.js",
|
|
"scripts": {
|
|
"dev": "electron-vite dev",
|
|
"build": "electron-vite build",
|
|
"typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json"
|
|
},
|
|
"dependencies": {
|
|
"@wto/patcher": "*",
|
|
"@wto/server": "*",
|
|
"i18next": "^26.3.6",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"react-i18next": "^17.0.10",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.2.0",
|
|
"electron": "^43.2.0",
|
|
"electron-vite": "^5.0.0",
|
|
"vite": "^7.3.6"
|
|
}
|
|
}
|